Skip to content

Commit 451915e

Browse files
nacooolNakul Pathak
authored andcommitted
Add description key to _fields dictionary (#1324)
Co-authored-by: Nakul Pathak <napathak@napathak-thinkpadt14gen5.punetw6.csb> (cherry picked from commit 6b595fe)
1 parent 71639fa commit 451915e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

nailgun/entities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,6 +2078,7 @@ class JobTemplate(
20782078
def __init__(self, server_config=None, **kwargs):
20792079
self._fields = {
20802080
'audit_comment': entity_fields.StringField(),
2081+
'description': entity_fields.StringField(),
20812082
'description_format': entity_fields.StringField(),
20822083
'effective_user': entity_fields.DictField(),
20832084
'job_category': entity_fields.StringField(),

tests/test_entities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2860,6 +2860,7 @@ def setUp(self):
28602860
self.data = {
28612861
'id': 1,
28622862
'audit_comment': None,
2863+
'description': None,
28632864
'description_format': None,
28642865
'effective_user': None,
28652866
'job_category': 'Commands',

0 commit comments

Comments
 (0)