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

Sector doesnt validate #1007

Open
paulsp94 opened this issue Feb 8, 2018 · 1 comment
Open

Sector doesnt validate #1007

paulsp94 opened this issue Feb 8, 2018 · 1 comment
Labels

Comments

@paulsp94
Copy link

paulsp94 commented Feb 8, 2018

Current behavior

You can Post a Sector with the same Name and Organization to the API which should not be possible as it would be redundant.

Expected behavior

It should refuse the Post Request by saying that there already exists a Sector with the same Name and Organization.

Steps to reproduce the behavior

  1. Post Sector with same Name and Organization as an already existing one to the API.
@rafa-munoz
Copy link
Contributor

I agree it's not a good behaviour.

This should make the job:

class Meta:
    unique_together = (..)

@karrla karrla added the bug label Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants