Skip to content

unique_together constraint not working #47

@MrSaints

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions