> > Whats wrong with this > <code> from django.conf.urls import patterns, include, url from django.view.generic import ListView from vmware.models import Customer
urlpatterns = patterns(' ', url(r'^customers/', ListView.as_view( queryset=Customer.objects.all().order_by"-id")[:100], template_name="VMS.html")), ) </code> This should take the model Customer and take the fields -id in the database and order them by that correct. -- 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/f1207503-ce22-4e05-bed7-ab1bed245560%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.