From 85ce5e3bab6efe92cb319ddba484a259124633ea Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Wed, 26 Jun 2013 12:57:13 -0400 Subject: [PATCH] add priority and alias models to School model, change default sort to use priority --- karmaworld/apps/courses/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/karmaworld/apps/courses/models.py b/karmaworld/apps/courses/models.py index 58fa6a3..0c70727 100644 --- a/karmaworld/apps/courses/models.py +++ b/karmaworld/apps/courses/models.py @@ -24,10 +24,12 @@ class School(models.Model): # United States Department of Education institution_id usde_id = models.BigIntegerField(blank=True, null=True) file_count = models.IntegerField(default=0) + priority = models.BooleanField(default=0) + alias = models.CharField(max_length=255, null=True, blank=True) class Meta: """ Sort School by file_count descending, name abc=> """ - ordering = ['-file_count', 'name'] + ordering = ['-file_count','-priority', 'name'] def __unicode__(self): -- 2.25.1