From 1861c56d7887dcfccf1d77c93ff68c00d5b3032f Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sun, 29 Jan 2023 11:33:36 -0500 Subject: [PATCH] TODOs --- TODO | 1 + netbox_acls/forms/models.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 TODO diff --git a/TODO b/TODO new file mode 100644 index 0000000..8e08620 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +- TODO: single underscore functions https://stackoverflow.com/questions/1301346/what-is-the-meaning-of-single-and-double-underscore-before-an-object-name diff --git a/netbox_acls/forms/models.py b/netbox_acls/forms/models.py index ac86bab..148fd5b 100644 --- a/netbox_acls/forms/models.py +++ b/netbox_acls/forms/models.py @@ -172,6 +172,7 @@ def clean(self): - Check if duplicate entry. (Because of GFK.) - Check if Access List has no existing rules before change the Access List's type. """ + # TODO: Refactor this method to fix error message logic. cleaned_data = super().clean() error_message = {} if self.errors.get("name"):