Re: Generic views create_object and prefill form data?

2012-05-23 Thread Andre Terra
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

Re: Generic views create_object and prefill form data?

2012-05-23 Thread Paul
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

Generic views create_object and prefill form data?

2012-05-19 Thread Paul
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