Skip to content

Commit

Permalink
fix contact view. Make update return to detail and remove form to Delete
Browse files Browse the repository at this point in the history
view
that prevent effective deletion
  • Loading branch information
digitalfox committed Oct 19, 2024
1 parent 5d55905 commit 69cab8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crm/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_initial(self):
return {}


class ContactUpdate(PydiciNonPublicdMixin, ThirdPartyMixin, ContactReturnToMixin, UpdateView):
class ContactUpdate(PydiciNonPublicdMixin, ThirdPartyMixin, UpdateView):
model = Contact
template_name = "core/form.html"
form_class = ContactForm
Expand All @@ -77,7 +77,6 @@ class ContactUpdate(PydiciNonPublicdMixin, ThirdPartyMixin, ContactReturnToMixin
class ContactDelete(PydiciNonPublicdMixin, FeatureContactsWriteMixin, DeleteView):
model = Contact
template_name = "core/delete.html"
form_class = ContactForm
success_url = reverse_lazy("crm:contact_list")

def form_valid(self, form):
Expand Down

0 comments on commit 69cab8c

Please sign in to comment.