Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions orgmailadmin/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def clean(self):
return
instance.name = name
instance.recipients = self.cleaned_data['recipients']
instance.clean()
instance.full_clean()
return {'instance': instance}

def save(self):
Expand Down Expand Up @@ -119,12 +119,12 @@ def save(self, new_domain_users):
a.domain = domains[a.domain_name]
except KeyError:
d = domains[a.domain_name] = Domain(name=a.domain_name)
d.clean()
d.full_clean()
d.save()
# Now that d has a pk, we can set d.users and a.domain_id
d.users = new_domain_users
a.domain = d
a.clean()
a.full_clean()
a.save()
saved.append(a)
existing[a.domain.name, a.name] = a
Expand Down