diff --git a/ansible/base.yml b/ansible/base.yml index 330089d5..9ec6724d 100755 --- a/ansible/base.yml +++ b/ansible/base.yml @@ -9,7 +9,7 @@ vars: mirror: deb.debian.org note: - server_name: bde-note.adh.crans.org + server_name: note.crans.org roles: - 1-apt-basic - 2-nk20 diff --git a/apps/activity/tests/test_activities.py b/apps/activity/tests/test_activities.py index db83fb0e..99eb2ffb 100644 --- a/apps/activity/tests/test_activities.py +++ b/apps/activity/tests/test_activities.py @@ -7,7 +7,6 @@ from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from django.utils import timezone - from activity.models import Activity, ActivityType, Guest, Entry from member.models import Club diff --git a/apps/note/models/notes.py b/apps/note/models/notes.py index e5d9c13c..604e81ae 100644 --- a/apps/note/models/notes.py +++ b/apps/note/models/notes.py @@ -102,7 +102,7 @@ class Note(PolymorphicModel): super().save(*args, **kwargs) - if not Alias.objects.filter(name=str(self)).exists(): + if not Alias.objects.filter(normalized_name=Alias.normalize(str(self))).exists(): a = Alias(name=str(self)) a.clean() diff --git a/apps/note/tables.py b/apps/note/tables.py index 0ca50306..f05edc96 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -46,7 +46,8 @@ class HistoryTable(tables.Table): } ) - created_at = tables.DateTimeColumn(format='Y-m-d H:i:s', + created_at = tables.DateTimeColumn( + format='Y-m-d H:i:s', attrs={ "td": { "class": "text-nowrap", diff --git a/apps/note/templates/note/transaction_form.html b/apps/note/templates/note/transaction_form.html index 15478219..871088d4 100644 --- a/apps/note/templates/note/transaction_form.html +++ b/apps/note/templates/note/transaction_form.html @@ -37,7 +37,7 @@ SPDX-License-Identifier: GPL-2.0-or-later