On 2/22/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote:
prep_data would take the request, and return a dict suitable to pass
to the objects constructor. FWIW I think prep_data is a bad name
though. Other suggestions?

Maybe something like this:

new_data = MyModel.prep_data (request)
my_obj = MyModel(new_data)

or

new_data = prep_data(MyModel, request)
my_obj = MyModel(new_data)


Would you also post the snippet you think should be used when validating data for custom forms. 

--
Amit Upadhyay
Blog: http://www.rootshell.be/~upadhyay
+91-9867-359-701
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django developers" group.
To post to this group, send email to django-developers@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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to