hi

i have a model which has a unicode string in one field. In admin I can save and update the model. In my view, using custom manipulators i can create new models using model.objects.create. But when i try to update and save the model in a view, I get a ProgrammingError. But the error message does not specify what the programming error is. Just says 'current transaction is aborted, commands ignored until end of transaction block SET TIME ZONE 'Asia/Calcutta'. On looking at the traceback i get in

211 django/db/models/query.py in get
clone: Error in formatting.

when i try the code below in the view, the same thing happens:

trs = Mymodel.objects.get(pk=somekey)
trs.name='somename'
trs.save()

but it works in the shell

--

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to