Essentially I want to ensure that a DB record provided via a form is unique AND be able to handle the error(s) produced in my own way. After lengthy and often fruitless searching I decided that a Model.validate_unique() call to trap the ValidationError would be suitable, so that I could populate my own 'error_message' form variable with the Django-produced "[model] with this [fields] already exists" message.
However this message is still displayed at the top of the form, via 'top_errors' in django.forms I believe. I have looked for a way to (artifically) declare the 'unique_together' fields to be OK once I have captured the ValidationError message - so as to inhibit the above behaviour - but there doesn't seem to be one. So can anyone suggest a better approach? Apologies in advance for not being able to supply any code but it is subject to IPR restrictions. Thanks ... Richard -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

