Skip to content

Commit

Permalink
Make model definition match the db state
Browse files Browse the repository at this point in the history
closes #6665
https://pulp.plan.io/issues/6665

(cherry picked from commit 8530e6e)
  • Loading branch information
goosemania authored and Travis CI User committed May 7, 2020
1 parent d401dd3 commit 0c4109b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/6665.misc
@@ -0,0 +1 @@
Make the model definition mathc the db state.
1 change: 1 addition & 0 deletions pulp_rpm/app/models/advisory.py
Expand Up @@ -361,6 +361,7 @@ class UpdateCollectionPackage(BaseModel):
sum = models.TextField()
sum_type = models.PositiveIntegerField(
null=True,
default=None,
choices=[
(sum_type, sum_type) for sum_type in ADVISORY_SUM_TYPE_TO_NAME.keys()
]
Expand Down

0 comments on commit 0c4109b

Please sign in to comment.