Skip to content
Snippets Groups Projects
Commit 273f0425 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Ensure that we grab the old lead from the database

parent da68edbe
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,8 @@ class UpdateLeadView(DelegatedViewMixin, UpdateView):
context_name = 'lead_form'
def form_valid(self, form):
old_lead = form.instance.lead
# Fetch the old lead from the database
old_lead = self.get_object().lead
response = super().form_valid(form)
new_lead = form.instance.lead
Activity.actions.create(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment