meta position

This commit is contained in:
Sanj 2012-10-02 18:26:25 +05:30
parent 86fdca4c90
commit 64f47e445f

View File

@ -99,6 +99,10 @@ class Noteworthy(models.Model):
description = models.TextField(blank=True) description = models.TextField(blank=True)
url = models.URLField(blank=True) url = models.URLField(blank=True)
class Meta:
ordering = ['position']
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
model = self.__class__ model = self.__class__