Open tonjo opened 10 years ago
As a workaround, I had to implement some kind of ModelForm myself. Too hard for me to determine where the error is.
I got this error when I created a ModelForm object with data that violated the unique constraint of a model field. Neo4django tries to get the correct error message for violating that constraint, but the corresponding entry does not exist in properties.Property.default_error_messages (properties.py line 42).
I know this is an old issue and I'm sure you moved on, but someone else might find this useful. Someone might also want to add 'unique' to Property.default_error_messages.
Thus is really a good "news" (even if dated a couple of months ago). That project is quite sleeping, but I surely needed this, thanks.
I have a very simple ModelForm subclass:
When I try to save the form in my view (only the post function here):
I got this error:
Tested with regular non-neo4django models and everything is fine.
Asked also a stackoverflow question.