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.
>
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
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
3 matches
Mail list logo