try this:
from django.db import models # Create your models here. class Product(models.Model): item_name = models.CharField(max_length=100) item_price = models.IntegerField() item_image = models.ImageField() def __unicode__(self): return self.item_name class Meta: # Do not Forget the sign in front of the field ordering = [-'item_name'] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0817402d-7f7f-4c51-828f-548650d07aa9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.