From f8a55bbbe599da1724375203f251e7b2cc7263aa Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 19 Apr 2020 16:42:17 +0200 Subject: [PATCH] Fix #240 --- .../migrations/0074_auto_20200419_1640.py | 19 +++++++++++++++++++ topologie/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 topologie/migrations/0074_auto_20200419_1640.py diff --git a/topologie/migrations/0074_auto_20200419_1640.py b/topologie/migrations/0074_auto_20200419_1640.py new file mode 100644 index 00000000..22576704 --- /dev/null +++ b/topologie/migrations/0074_auto_20200419_1640.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.28 on 2020-04-19 14:40 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('topologie', '0073_auto_20191120_0159'), + ] + + operations = [ + migrations.AlterModelOptions( + name='portprofile', + options={'permissions': (('view_portprofile', 'Can view a port profile object'),), 'verbose_name': 'port profile', 'verbose_name_plural': 'port profiles'}, + ), + ] diff --git a/topologie/models.py b/topologie/models.py index ab6a22dd..34c390bb 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -893,7 +893,7 @@ class PortProfile(AclMixin, RevMixin, models.Model): ) class Meta: - permissions = (("view_port_profile", _("Can view a port profile object")),) + permissions = (("view_portprofile", _("Can view a port profile object")),) verbose_name = _("port profile") verbose_name_plural = _("port profiles") unique_together = ["on_dormitory", "profil_default"]