diff options
Diffstat (limited to 'app/resume/models.py')
-rw-r--r-- | app/resume/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/resume/models.py b/app/resume/models.py index a8c9809..95c66f7 100644 --- a/app/resume/models.py +++ b/app/resume/models.py @@ -3,6 +3,7 @@ from django.core.urlresolvers import reverse from utils.widgets import markdown_to_html + class Publisher(models.Model): name = models.CharField(max_length=200) slug = models.SlugField(max_length=50) @@ -10,6 +11,10 @@ class Publisher(models.Model): body_html = models.TextField(null=True, blank=True) url = models.CharField(max_length=200, blank=True, null=True) payment_time = models.DecimalField(max_digits=2, decimal_places=0) + order = models.DecimalField(max_digits=1, decimal_places=0) + + class Meta: + ordering = ('order',) def __str__(self): return self.name |