aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/forms.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/forms.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctrack/organisations/forms.py b/ctrack/organisations/forms.py
index 0caf628..d60172a 100644
--- a/ctrack/organisations/forms.py
+++ b/ctrack/organisations/forms.py
@@ -44,6 +44,12 @@ class OrganisationCreateForm(forms.ModelForm):
"designation_type": "This is probably defined in the Reguation",
}
+ def save(self, **kwargs):
+ org = super().save(commit=False)
+ org.updated_by = kwargs["user"]
+ org.save()
+ return org
+
class AddressCreateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):