Skip to content

Commit

Permalink
Update document.py
Browse files Browse the repository at this point in the history
Add glossary type for document
  • Loading branch information
danieleguido authored Aug 14, 2024
1 parent 767e31d commit 5f52f40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miller/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Document(models.Model):
RICH = 'rich'
LINK = 'link'
AV = 'audiovisual'

GLOSSARY = 'glossary'
ENTITY = 'entity'

TYPE_CHOICES = (
Expand All @@ -60,6 +60,7 @@ class Document(models.Model):
(RICH, 'rich'),
(LINK, 'link'),
(AV, 'audiovisual'),
(GLOSSARY, 'glossary entry'),
# for ENTITY, use the type field inside data JsonField.
(ENTITY, 'entity: see data type property'),
) + settings.MILLER_DOCUMENT_TYPE_CHOICES
Expand Down

0 comments on commit 5f52f40

Please sign in to comment.