Hello I have a field in my model which has unique = True. If I specify an error message with a reference to the value of the field, Django crashes with Key error. Yet this works for other error_messages. How wan I solve this? Here is the code and the trace back Is this a bug in admin? I thank you in advance for your help.
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7fb7b0a0-7f36-7055-e751-16dbd2122fee%40laposte.net. For more options, visit https://groups.google.com/d/optout. |
Key error for error messages in case the check on unique fails.
'Odile Lambert' via Django users Wed, 30 Jan 2019 14:25:40 -0800
- Get very last object of database Stéphane Manguette
- RE: Get very last object of database Matthew Pava
- Re: Get very last object of data... Stéphane Manguette
- Key error for error messages in ... 'Odile Lambert' via Django users