Skip to content

unique_together constraint not working #47

Description

@MrSaints

I might be doing something wrong, but if the following example code is executed:

Attribute.objects.create(name='Height', datatype=Attribute.TYPE_TEXT)

There is no content_type. Furthermore, it can be executed multiple times resulting in several attributes, and judging from unique_together = ('site', 'content_type', 'slug'), perhaps it is not desirable?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions