Haes
unread,Mar 28, 2011, 9:32:26 AM3/28/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olwidget
Hi,
if you try to save an invalid geometry syntax via a TextArea widget in
the admin, a TemplateSyntaxError is raised.
Is it possible to catch those exceptions (I've seen OGRException and
GEOSException so far) and raise a ValidationError, so that the
corresponding field is marked as erroneous with an appropriate error
msg?
Thanks for any help.
PS: Unfortunately, the code never enters the form's clean_XX() methods
or I'd be able to catch those exceptions in admin.py myself.