At first glance you are missing a paren:
   queryset=Customer.objects.all().order_by"-id")[:100]
should be:
   queryset=Customer.objects.all().order_by("-id")[:100]

Are you using an IDE? It should have picked that up

kirby

On Tuesday, May 6, 2014 1:38:34 PM UTC-5, G Z wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/9100b8fe-fc4b-4dda-abca-cf1f50bfc9fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to