diff --git a/scipost_django/scipost/management/commands/add_groups_and_permissions.py b/scipost_django/scipost/management/commands/add_groups_and_permissions.py
index 4ceacdc5e90e73cf43560e14dbd36fc721bce34f..c11951c9b39e338750efc3884b42013a5665b91b 100644
--- a/scipost_django/scipost/management/commands/add_groups_and_permissions.py
+++ b/scipost_django/scipost/management/commands/add_groups_and_permissions.py
@@ -473,7 +473,7 @@ class Command(BaseCommand):
 
         # Pins and Notes
         can_add_notes, created = Permission.objects.get_or_create(
-            code_name="can_add_notes",
+            codename="can_add_notes",
             name="Can add notes",
             content_type=content_type,
         )