Two forms : One for Update and one for Creation

0 views
Skip to first unread message

PhilGo20

unread,
Nov 23, 2009, 12:57:37 PM11/23/09
to Pinax Users
Hi,

I am a new Pinax and Django user and I am trying to figure out best
practice.

I see this comment a lot in Pinax :

# @@@ is this the right approach, to have two forms where creation and
update fields differ?


Can be find in project.forms for example.

Question is : Is this the good approach ? Or can I cut one if I don't
really have a reason to have different forms for update and creation ?

Thanks,

Harley Bussell

unread,
Nov 23, 2009, 5:22:24 PM11/23/09
to Pinax Users
It makes sense to have 2 forms if there is a difference in the
validation or field options.
If both forms work the same way there's no point having separate
classes.
Reply all
Reply to author
Forward
0 new messages