Gábor Farkas wrote:
>or have a new constructor, that takes a dictionary of strings:
>
>def myview(request):
> try:
> m = MyModel( request.POSTDATA)
> m.save()
> except SomethingFailedError:
> //handle it
>
>
I also proposed something like this in first or second reincarnation of
validation-aware models thread. But I think that it should be some named
method like:
m = MyModel.from_post(request.POST)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---