Yes, this is probably true. I am still learning. And I like Django and how it works but it takes time to understand some concepts. I was rushing a little bit because I wanted to meet this challenge
>> [the tutorial] is enough to build it in no longer that a few days (learning >> included), >> even for pre-intermediate programmer. mentioned here: http://groups.google.com/group/django-users/browse_frm/thread/d7f9320f3fba5df0/cfd37dc8d5d51027?q=#cfd37dc8d5d51027 But it took me 2 weeks to finish this very simple app. And I'm still trying to resolve this last issue. If you look at the pictures here http://zeynel.posterous.com/django-template-problem the title "Search lawyer by last name" should not be in the /admin/ wkw1 directory because the search box is in /admin/wkw1/lawyer/. How do I change that title? On Nov 16, 5:55 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Nov 16, 4:31 pm, Zeynel <azeyn...@gmail.com> wrote: > > > > > > > Thanks! > > > I noticed that using > > > class Lawyer(models.Model): > > ... > > ordering = ('last',) > > > did not work. > > > But this worked > > > class Lawyer(models.Model): > > ... > > class Meta: > > ordering = ('last',) > > > copied fromhttp://www.djangoproject.com/documentation/models/ordering/ > > > What is the correct way actually? > > You weren't reading closely enough. The page Karen linked you to is > all about admin options, and that option therefore belongs on the > ModelAdmin class, not the model itself. The other page explains how > you set the default ordering for a model throughout the application, > which the admin will also use if it doesn't have anything else set. > -- > DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.