One of the best features of Django admin is the ability to add and edit objects without writing any code OR template. However, no such built-in functionality on the non-admin part of the site. Everyone has to reimplement it on its own, which is cumbersome and difficult to get right or as good.
Wouldn't it be cool if generic views supported add/change out of the box, and the only code to write was a 1-liner equivalent to admin's "fields=(...,)"? Could the current admin rewrite be the occasion to factor out this functionality and make it more widely available? JJ. PS. I'm currently importing and reusing "add_stage" and "change_stage". However, this poses a number of issues, for example: - "fields" are shared by add_stage and change_stage, both admin and non-admin. Modifications to one impact the others. - the add/change_stage template contains admin specific headers - it relies on ../../jsi18n, which is absent in the non-admin area - ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---