Skip to content

Commit

Permalink
Order template variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Jun 17, 2015
1 parent fdeea24 commit 47b92af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snippets/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ class SnippetTemplateVariable(CachingMixin, models.Model):
def __unicode__(self):
return u'{0}: {1}'.format(self.template.name, self.name)

class Meta:
ordering = ('name',)


class ClientMatchRule(CachingMixin, models.Model):
"""Defines a rule that matches a snippet to certain clients."""
Expand Down

0 comments on commit 47b92af

Please sign in to comment.