I guess I was just too tired when I wrote it, I just forgot the * and
** on the 2 arguments.

I have some initialization that I'm doing in __init__ but had removed
that to make the example shorter and was still seeing the problem.

Thanks for the help, those 3 *'s fixed the whole problem


On Jan 26, 5:50 am, Steve Holden <holden...@gmail.com> wrote:
> Dj Gilcrease wrote:
> > What do you need to do in __init__
>
> You don't actually need to fo anything at all! As you have the code now
> you're calling the superclass's __init__ with two arguments: the newly
> created instance, a tuple of the other positional args (if any) and a
> dict of the keyword arguments (if any).
>
> Change the method to
>
>     def __init__(self, *args, **kwargs):
>         super(Fails, self).__init__(*args, **kwargs)
>
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to