Open ilyatbn opened 1 year ago
Hi @ilyatbn, thank you for reporting this. It is impossible to specify multiple properties when creating uniqueness constraints by extending Node
class. But I can see you managed to find the workaround! Thank you for pointing this out! I will leave this issue open so we can plan to add it as a feature. You are also more than welcome to contribute!
What are you working on?
considering the following Node class:
How do I make a unique constaint for both fields using the Node class?
I can achieve this manually by adding the following outside of the class:
If I set each field with a
unique=True
property the constraint is created separately for each field and I only want them to both be the same to be considered unique.