Sunday, September 28, 2014

Re: Django Generic Create VIew and Hidden fields

On Sun, Sep 28, 2014 at 5:49 PM, Sabine Maennel
<> wrote:
> Can someone please help me with Create View? I have a hidden field and not
> having it in the form causes Django to not store my object in the database.
> It fails silently.
> So here are my files:
> class Application(TimeStampedModel):
> name = models.CharField(max_length=50)
> application_status = models.CharField(max_length=1,
> def __unicode__(self):
> return
> def save(self):
> self.application_status ==self.APPLICATION_NEW

This overwritten save method is probably at fault - it does not ever
actually save the model or call the parent class to do so either.



You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment