On Sat, 2009-02-28 at 15:38 -0500, Vitaly Babiy wrote:
> I have a model that I have created a custom consturctor now when I use
> it in a test or in loaddata, I get this error:
Your model constructor must still allow the normal way of calling model
constructors. That is, you can only extend the a
O okay I see you what you mean.
Vitaly Babiy
On Sat, Feb 28, 2009 at 3:51 PM, Alex Gaynor wrote:
>
>
> On Sat, Feb 28, 2009 at 3:47 PM, Vitaly Babiy wrote:
>
>> Here is my constructor:
>>
>> class EmailVerification(models.Model):
>> def __init__(self, user, ip, *args, **kargs):
>>
On Sat, Feb 28, 2009 at 3:47 PM, Vitaly Babiy wrote:
> Here is my constructor:
>
> class EmailVerification(models.Model):
> def __init__(self, user, ip, *args, **kargs):
> # Build sha1 for email verification
> sha1 = sha.new("".join([str(user.id), user.email, ip]))
> s
Here is my constructor:
class EmailVerification(models.Model):
def __init__(self, user, ip, *args, **kargs):
# Build sha1 for email verification
sha1 = sha.new("".join([str(user.id), user.email, ip]))
self.sha = sha1
self.user = user
Vitaly Babiy
On Sat, Feb
On Sat, Feb 28, 2009 at 3:38 PM, Vitaly Babiy wrote:
> I have a model that I have created a custom consturctor now when I use it
> in a test or in loaddata, I get this error:
>
> vba...@vbabiy-laptop:~/projects/git-projects/howsthedotcom$ ./manage.py
> loaddata email_verification
> Installing jso
5 matches
Mail list logo