diff --git a/admin/templates/states_panel.html b/admin/templates/states_panel.html index 705d470..430aae6 100644 --- a/admin/templates/states_panel.html +++ b/admin/templates/states_panel.html @@ -8,7 +8,6 @@
@@ -23,11 +22,9 @@ - + - # - - {% trans "State Definition" %} + {% trans "State Definition" %} {% trans "Actions" %} @@ -41,42 +38,32 @@ class="align-items-center"> -
-
+ {% endfor %} - +
{% csrf_token %} @@ -148,7 +135,7 @@
diff --git a/admin/views.py b/admin/views.py index df36e9e..105dc69 100644 --- a/admin/views.py +++ b/admin/views.py @@ -19,7 +19,6 @@ from user.models import User, Institution from admin.email import NotifyActivateUserByEmail from action.models import StateDefinition -device_logger = logging.getLogger('device_log') class AdminView(DashboardView): def get(self, *args, **kwargs): @@ -164,7 +163,6 @@ class AddStateDefinitionView(AdminView, StateDefinitionContextMixin, CreateView) try: response = super().form_valid(form) messages.success(self.request, _("State definition successfully added.")) - device_logger.info(f" StateDefinition with value {form.instance.state} by user {self.request.user}.") return response except IntegrityError: messages.error(self.request, _("State is already defined."))