diff options
| -rw-r--r-- | ishtar_common/models.py | 6 | ||||
| -rw-r--r-- | ishtar_common/urls.py | 1 | ||||
| -rw-r--r-- | ishtar_common/views.py | 12 | 
3 files changed, 3 insertions, 16 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index f16b9ffc9..b06b927ba 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2920,9 +2920,9 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem):          actions += [              (                  reverse("account_creation", args=[self.pk]), -                _("Create new user"), -                "fa fa-user", -                "", +                _("Create new account"), +                "fa fa-pencil", +                _("Compte"),                  "",                  False,              ), diff --git a/ishtar_common/urls.py b/ishtar_common/urls.py index c21f51d71..7490788c7 100644 --- a/ishtar_common/urls.py +++ b/ishtar_common/urls.py @@ -82,7 +82,6 @@ urlpatterns = [          name="person_modification",      ),      url(r"person_modify/(?P<pk>.+)/$", views.person_modify, name="person_modify"), -    url(r"person_create/(?P<pk>.+)/$", views.person_create, name="person_create"),      url(          r"person_deletion/(?P<step>.+)?$",          check_rights(["change_person", "change_own_person"])( diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 5b67f1bcb..fb51445f2 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -209,18 +209,6 @@ def person_modify(request, pk):          reverse("person_modification", kwargs={"step": "identity-person_modification"})      ) - -def person_create(request, pk): -    if not wizard_is_available(person_creation_wizard, request, models.Person, pk): -        return HttpResponseRedirect("/") -    wizards.PersonWizard.session_set_value( -        request, "selec-person_creation", "pk", pk, reset=True -    ) -    return redirect( -        reverse("person_creation", kwargs={"step": "identity-person_creation"}) -    ) - -  person_deletion_wizard = wizards.PersonDeletionWizard.as_view(      [          ("selec-person_deletion", forms.PersonFormMultiSelection), | 
