On Tue, Aug 24, 2010 at 3:33 PM, Almost George <almostgeo...@almostexciting.com> wrote: > > When overriding __init__, what does that function definition need to > look like to make sure everything else works as usual? >
Nothing special, as long as you call the __init__ of super. Example: super(YourModelName, self).__init__(*args, **kwargs) Also, make sure you do that before anything else, or it'll most likely blow up. If you decide to pass any extra kwargs as part of your custom functionality you should also take care to pop() them and store them in temporary variables before calling super, or it could break the __init__ of models.Model. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.