Re: Handling Varying Number of Fields in Model Form

2009-07-16 Thread Streamweaver
This seems hacky but it's something I've come up with so far that seems to do what I need it to. I have some issues with permissiosn to display still but I'm working on it. My veiw method is as follows: @login_required @has_perm_or_owner_of('can change release', Release) def update_release(requ

Handling Varying Number of Fields in Model Form

2009-07-16 Thread Streamweaver
I have a model with a number of attributes (some included as example below): class Release(models.Model): project_fk = models.ForeignKey(Project) title = models.CharField(max_length=30) summary = models.TextField() owner = models.ForeignKey(User) planning_status = models.CharF