From 2e43f9c784fd86d76add2f457b49931e394fd988 Mon Sep 17 00:00:00 2001 From: Joel Rangsmo Date: Mon, 22 Jul 2019 18:32:48 +0200 Subject: [PATCH 1/2] Updated modules with "description" property Reladed to added feature in [Gophish](https://github.com/gophish/gophish/pull/1519) --- gophish/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gophish/models.py b/gophish/models.py index c0f3d8e..e0815b6 100644 --- a/gophish/models.py +++ b/gophish/models.py @@ -55,6 +55,7 @@ class Campaign(Model): _valid_properties = { 'id': None, 'name': None, + 'descriptions': None, 'created_date': datetime.now(tzlocal()), 'launch_date': datetime.now(tzlocal()), 'send_by_date': None, @@ -339,6 +340,7 @@ class Template(Model): _valid_properties = { 'id': None, 'name': None, + 'description': None, 'text': None, 'html': None, 'modified_date': datetime.now(tzlocal()), @@ -370,6 +372,7 @@ class Page(Model): _valid_properties = { 'id': None, 'name': None, + 'description': None, 'html': None, 'modified_date': datetime.now(tzlocal()), 'capture_credentials': False, From 01f36cf13325273e19ea50ef542ff7f91c431ac7 Mon Sep 17 00:00:00 2001 From: Joel Rangsmo Date: Mon, 22 Jul 2019 18:49:28 +0200 Subject: [PATCH 2/2] Fixed misspelled variable --- gophish/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gophish/models.py b/gophish/models.py index e0815b6..2d8dc59 100644 --- a/gophish/models.py +++ b/gophish/models.py @@ -55,7 +55,7 @@ class Campaign(Model): _valid_properties = { 'id': None, 'name': None, - 'descriptions': None, + 'description': None, 'created_date': datetime.now(tzlocal()), 'launch_date': datetime.now(tzlocal()), 'send_by_date': None,