diff options
author | MR Lemon <matt@matthewlemon> | 2020-05-02 14:49:11 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-05-02 14:49:11 +0100 |
commit | 51797f3868ad9fe2a0ff59a6732ed54d377cc5a4 (patch) | |
tree | 9a90779836689fc0fc6b1795026055c0cbf6af4e /ctrack/organisations/forms.py | |
parent | b562707e4598c7f04463e688928b90b47196b6c1 (diff) |
still working on org address form
Diffstat (limited to 'ctrack/organisations/forms.py')
-rw-r--r-- | ctrack/organisations/forms.py | 6 |
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): |