Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Offer unique constraint per related node #65

Closed
marktani opened this issue Jan 13, 2017 · 8 comments
Closed

Offer unique constraint per related node #65

marktani opened this issue Jan 13, 2017 · 8 comments
Labels
status/stale Marked as state by the GitHub stalebot

Comments

@marktani
Copy link
Contributor

For example, post titles are only unique per user. Two users can have two separate posts with the same title.

@cullan
Copy link

cullan commented Jan 30, 2017

It would be nice if any two fields could be marked as being unique when taken together.
If one field is a relation it would do what you suggest but it could also be generalized to accommodate the same kind of thing within one model.

Django's ORM does this with the unique_together option. Link to Django docs

@schickling
Copy link
Member

Hi @cullan. This feature is available as a beta feature. Please reach out to us via Intercom/Slack for enabling it for you.

@marktani
Copy link
Contributor Author

marktani commented Feb 6, 2017

#90 would be a nice addition for this

@marktani
Copy link
Contributor Author

This feature is now work in progress and no more beta spots are available.

@marktani
Copy link
Contributor Author

After our initial tests, we're back to the design board.

@joealden
Copy link

Has there been any progress on the implementation of this feature?

@sorenbs
Copy link
Member

sorenbs commented Nov 24, 2017

@joealden please see #1300 for current discussion

@stale
Copy link

stale bot commented Jan 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Marked as state by the GitHub stalebot label Jan 9, 2019
@stale stale bot closed this as completed Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/stale Marked as state by the GitHub stalebot
Projects
None yet
Development

No branches or pull requests

5 participants