Subject: Re: Generic views create_object and prefill form data?
To: Django users
Solved it by migrating to the class based generic views, then fed
initial form data to the constructor of the form by overloading
get_initial on the view class.
Paul
--
You received this message because you are
Solved it by migrating to the class based generic views, then fed
initial form data to the constructor of the form by overloading
get_initial on the view class.
Paul
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
I have a model like this:
class Website(models.Model):
user = models.ForeignKey(User)
name = models.CharField(unique=True, max_length=32)
And use a generic view to create new items:
def website_create(request):
return create_update.create_object(
request = request,
fo
3 matches
Mail list logo