Friday, August 31, 2012

Re: Id error


In your CountryForm, calling super(self.__class__)... might not be a
good idea. You should name the class, ie.

    super(CountryForm, self).save(*args, **kwargs)

Just did that, had no effect. 
 
 
I'd also be wary of defining a class called 'Object', since python
already has 'object' as part of its "new style" classes.
 
I can understand why, but till now it didn't give any problems and I too don't see why it should except for reading. But it greatly enlarges my understanding of what ever I might be doing.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xsUkzV2ZVkkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment