Skip to content

Commit

Permalink
Add needs_publish flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Jun 20, 2023
1 parent 162e767 commit 9b267eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2655,6 +2655,7 @@ def __init__(self, server_config=None, **kwargs):
'name': entity_fields.StringField(
required=True, str_type='alpha', length=(6, 12), unique=True
),
'needs_publish': entity_fields.BooleanField(),
'next_version': entity_fields.IntegerField(),
'organization': entity_fields.OneToOneField(
Organization,
Expand Down
1 change: 1 addition & 0 deletions tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2541,6 +2541,7 @@ def setUp(self):
"label": "my_CV",
"last_published": '2018-11-23 11:51:30 UTC',
"name": "my CV",
"needs_publish": True,
"next_version": "3.0",
"organization_id": 1,
"repositories": [
Expand Down

0 comments on commit 9b267eb

Please sign in to comment.