okfde / django-filingcabinet

PDF document viewer Django app
10 stars 3 forks source link

Index name gets too long #12

Closed MagdaN closed 2 years ago

MagdaN commented 2 years ago

When using this project as standalone app and using the built-in models

FILINGCABINET_DOCUMENT_MODEL = 'filingcabinet.Document'
FILINGCABINET_DOCUMENTCOLLECTION_MODEL = 'filingcabinet.DocumentCollection'

the migrations fail because the index name gets too long, which is defined here: https://github.com/okfde/django-filingcabinet/blob/master/filingcabinet/models.py#L226