On 12/23/06, gordyt <[EMAIL PROTECTED]> wrote:
I'm very new to Django and have been experimenting with newforms. I would be most grateful if anyone would care to take a look at this small sample to see if I'm doing things in an efficient manner. It works great, but I want to make sure I'm not doing something stupid.. :-) To shorten the following code snippets I've yanked out all non-essential parts.
Hi Gordon, That looks pretty good. Once I finish up the form_for_model() helper function, you might be able to cut down on the amount of code even further, because the AddEditCustomerForm could be generated from the model. (Of course, you might not want to do that, depending on whether your model has fields that you don't want to edit via that form.) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---