Hi, When using Model class like this:

class MyModel(models.Model):
    def __init__(self, *args, **kwargs):
        self.myfield = models.Field()
        super(MyModel, self).__init__(*args, **kwargs)
It doesn't take into consideration myfield(in the admin form, when
saving the object... )

But if i declare like that:

class MyModel(models.Model):
    myfield = models.Field()
It works just fine.

Why?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to