AFAIK, Django accepts lists and tuples interchangeably (if isinstance(xxx, (list, tuple)) allows for xxx to be either of the two) in many cases.
On Apr 14, 11:22 am, Kevin Cole <[EMAIL PROTECTED]> wrote: > Hi, > > I'm following along in the book, and noticed that when "ordering" is > used in the Meta class (Chapter 5, page 77) it is a list. However, > later, when used in the Admin class (Chapter 6, page 91), it's a > tuple. > > Testing it out, it seems to work okay either way, but I wondered if > there was a good reason to have Meta one way and Admin the other. Is > there a "best practice" here? (Or was it simply a typo in the book?) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---