On 9/18/06, patrickk <[EMAIL PROTECTED]> wrote: > NameError: name 'self' is not defined > > it´s defined inside the model.
Ah. I think this is a case of Django wanting to resolve that at the time the class is created, even though 'self' can't be resolved until you're dealing with an instance of the class. But I could be wrong. Probably the best way to do this is to define the validator outside the model, and then reference it normally. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---