inveniosoftware / inveniosoftware/invenio-sequencegenerator
models: is unique constraint on meta_template necessary?
Open
Size: easy
- Dominant language
- Python
- Stars
- 0
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/inveniosoftware/invenio-sequencegenerator/blob/master/invenio_sequencegenerator/models.py#L44
IMHO we should be able to safely remote the `unique=True` attribute and use `definition_name` instead.
Update: the unique constraint should be a combination of a `name` and `meta_template`.
Contributor guide
Assessment
This issue has not been assessed yet.