From 3dd3d9eba96f69852b3032084c3ee42920fea245 Mon Sep 17 00:00:00 2001 From: MizukiTemma Date: Wed, 11 Sep 2024 20:02:25 +0200 Subject: [PATCH] renaming update --- integreat_cms/cms/views/contacts/contact_actions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integreat_cms/cms/views/contacts/contact_actions.py b/integreat_cms/cms/views/contacts/contact_actions.py index 52df42b8b6..65f63cd4c1 100644 --- a/integreat_cms/cms/views/contacts/contact_actions.py +++ b/integreat_cms/cms/views/contacts/contact_actions.py @@ -26,7 +26,7 @@ def archive_contact( :return: A redirection to the :class:`~integreat_cms.cms.views.contacts.contact_list_view.ContactListView` """ to_be_archived_contact = get_object_or_404( - Contact, id=contact_id, poi__region=request.region + Contact, id=contact_id, location__region=request.region ) to_be_archived_contact.archive() @@ -55,7 +55,7 @@ def delete_contact( :return: A redirection to the :class:`~integreat_cms.cms.views.contacts.contact_list_view.ContactListView` """ to_be_deleted_contact = get_object_or_404( - Contact, id=contact_id, poi__region=request.region + Contact, id=contact_id, location__region=request.region ) to_be_deleted_contact.delete() messages.success( @@ -82,7 +82,7 @@ def restore_contact( :return: A redirection to the :class:`~integreat_cms.cms.views.contacts.contact_list_view.ContactListView` """ to_be_restored_contact = get_object_or_404( - Contact, id=contact_id, poi__region=request.region + Contact, id=contact_id, location__region=request.region ) to_be_restored_contact.restore() @@ -112,7 +112,7 @@ def copy_contact( :return: A redirection to the :class:`~integreat_cms.cms.views.contacts.contact_list_view.ContactListView` """ to_be_copied_contact = get_object_or_404( - Contact, id=contact_id, poi__region=request.region + Contact, id=contact_id, location__region=request.region ) to_be_copied_contact.copy()