On 4/5/07, TaMeR <[EMAIL PROTECTED]> wrote:

>     class Meta:
>         ordering = ('code')

You have been bitten by a very common Python error:

('code') defines a string
('code',) defines a tuple containing a single element, that is a string.

The comma is required for parsing purposes to distinguish parentheses
used for arithmetic binding, and parentheses used to define a tuple.

Add a comma, and all will be good.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to