Unique Constaints on multiple fields #248
Labels
community
community
Effort - Medium
Effort - Medium
feature
feature
Frequency - Monthly
Frequency - Monthly
Priority - Later
Priority - Later
Reach - VeryFew
Reach - VeryFew
Severity - S3
Severity - S3
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.The text was updated successfully, but these errors were encountered: