Commit d1b9cdb4 authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

models: order projects by linkname by default

So we get a sensible list of projects on the front page's project list.
Signed-off-by: default avatarJeremy Kerr <>
parent 62cc9ab3
......@@ -65,6 +65,10 @@ class Project(models.Model):
return False
return self in user.get_profile().maintainer_projects.all()
class Meta:
ordering = ['linkname']
class UserProfile(models.Model):
user = models.ForeignKey(User, unique = True)
primary_project = models.ForeignKey(Project, null = True, blank = True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment