Skip to content

Attempt to append to unique_together tuple #33

@shangxiao

Description

@shangxiao

Trying out django-compositekey on a legacy database created with inspectdb, it appears as though an attempt is made to append to the unique_together tuple:

...
File "/xxx/.virtualenvs/xxx/lib/python2.7/site-packages/compositekey/db/models/fields/multiplekey.py", line 71, in lazy_init
cls._meta.unique_together.append(names)
AttributeError: 'tuple' object has no attribute 'append'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions