From 516651c8d52ddd2bcbf1878e8d621ba845b1048d Mon Sep 17 00:00:00 2001 From: Nakul Pathak Date: Fri, 1 Aug 2025 13:01:52 +0530 Subject: [PATCH] Add description key to _fields dictionary --- nailgun/entities.py | 1 + tests/test_entities.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nailgun/entities.py b/nailgun/entities.py index 830bc25f..28fc7616 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -2077,6 +2077,7 @@ class JobTemplate( def __init__(self, server_config=None, **kwargs): self._fields = { 'audit_comment': entity_fields.StringField(), + 'description': entity_fields.StringField(), 'description_format': entity_fields.StringField(), 'effective_user': entity_fields.DictField(), 'job_category': entity_fields.StringField(), diff --git a/tests/test_entities.py b/tests/test_entities.py index caefe166..1adfb72f 100644 --- a/tests/test_entities.py +++ b/tests/test_entities.py @@ -2875,6 +2875,7 @@ def setUp(self): self.data = { 'id': 1, 'audit_comment': None, + 'description': None, 'description_format': None, 'effective_user': None, 'job_category': 'Commands',