Re: Newbie Question: Is "ordering" a list or a tuple or both / either?

2008-04-14 Thread Malcolm Tredinnick
On Mon, 2008-04-14 at 08:22 -0700, Kevin Cole 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. Both work. >

Re: Newbie Question: Is "ordering" a list or a tuple or both / either?

2008-04-14 Thread [EMAIL PROTECTED]
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

Newbie Question: Is "ordering" a list or a tuple or both / either?

2008-04-14 Thread Kevin Cole
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