Skip to content

Commit

Permalink
refactor(models/core): use 2-letter code for pdfs (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldpbear authored Sep 3, 2021
1 parent c8d9c96 commit ecf0722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sa_api_v2/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,15 @@ class Attachment(CacheClearingModel, TimeStampedModel):
visible = models.BooleanField(default=True, blank=True, db_index=True)

COVER = "CO"
COVER_PDF = "CO_PDF"
COVER_PDF = "PD"
RICH_TEXT = "RT"
ATTACHMENT_TYPE_CHOICES = (
(COVER, "Cover"),
(COVER_PDF, "Cover PDF"),
(RICH_TEXT, "Rich Text"),
)
type = models.CharField(
max_length=6, choices=ATTACHMENT_TYPE_CHOICES, default=COVER
max_length=2, choices=ATTACHMENT_TYPE_CHOICES, default=COVER
)

cache = cache.AttachmentCache()
Expand Down

0 comments on commit ecf0722

Please sign in to comment.