Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a compound key for Image objects on source and source_id #185

Open
cjg89 opened this issue Sep 8, 2020 · 0 comments
Open

Define a compound key for Image objects on source and source_id #185

cjg89 opened this issue Sep 8, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cjg89
Copy link
Member

cjg89 commented Sep 8, 2020

Add unique_together to the Image model Meta to ensure source and source_id fields are unique together.

https://docs.djangoproject.com/en/1.11/ref/models/options/#unique-together

@cjg89 cjg89 added the enhancement New feature or request label Sep 8, 2020
@cjg89 cjg89 added this to the Backlog milestone Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants