Commits

funkybob  committed 817c1a6 Draft

Remove trailing comma

  • Participants
  • Parent commits 3269fa5

Comments (0)

Files changed (2)

File gnocchi/faq/admin.py

     }
     # enabling drag'n'drop reordering for Grappelli
     if HAVE_GRAPPELLI:
-        sortable_field_name = 'order',
+        sortable_field_name = 'order'
         formfield_overrides = {
             models.models.PositiveIntegerField: {
                 'widget': forms.HiddenInput

File gnocchi/faq/models.py

     slug = models.SlugField()
     answer = models.TextField()
 
-    order = models.IntegerField(default=1)
+    order = models.PositiveIntegerField(default=1)
     is_published = models.BooleanField(default=False)
 
     objects = QuestionManager()