Aug 022009

In model definition,
class Meta:
ordering = ['name']

Posted by weboom at 5:41 am Tagged with: , , ,
Jul 252009

Class Meta
is an inner class which can specify a number of common options.
——
e.g.,
Class Meta:
ordering = ['name']
verbose_name_plura = “Categories”
———–

Posted by weboom at 1:40 pm Tagged with: ,
Switch to our mobile site
Top Footer