News for hackers. Stuff that matters.

wimfeijen

Re:RFC: Object-based Views in Django on Tuesday January 22, 2013 @06:42PM (#5100410)
Zachary, today I was thinking along the same lines and I really really like your proposal!

How do you propose object-based views to expand beyond the generic cases in order to handle for example multiple forms, or hiding a field from a form and then adding that (for example request.user) after form validation, before save , or add some additional logic to a detail view?

In my opinion, IDS['slug'] would be neater than ids.SLUG

And now for something completely different: An other idea of mine which keeps going around in my head is having addable forms, so you can do total_form = profile_form + company_form and easily validate etc. What do you think?