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

Faulty unique constraint on slug field of Tag model #19

Open
gustavengstrom opened this issue Aug 18, 2018 · 0 comments
Open

Faulty unique constraint on slug field of Tag model #19

gustavengstrom opened this issue Aug 18, 2018 · 0 comments

Comments

@gustavengstrom
Copy link

The Tag model has "unique=True" set for the slug field. This must be an error since it implies that we can only have one tag per slug... Below is the code pasted from conduit/articles/models.py.

class Tag(TimestampedModel):
tag = models.CharField(max_length=255)
slug = models.SlugField(db_index=True, unique=True)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant