From b6d22dc555595ca1415fe93a73de575c8e47239c Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 31 Dec 2017 21:00:52 +0100 Subject: [PATCH] Ns et pas Nx --- .../migrations/0071_auto_20171231_2100.py | 19 +++++++++++++++++++ machines/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 machines/migrations/0071_auto_20171231_2100.py diff --git a/machines/migrations/0071_auto_20171231_2100.py b/machines/migrations/0071_auto_20171231_2100.py new file mode 100644 index 00000000..776edd82 --- /dev/null +++ b/machines/migrations/0071_auto_20171231_2100.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2017-12-31 20:00 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0070_auto_20171231_1947'), + ] + + operations = [ + migrations.AlterModelOptions( + name='ns', + options={'permissions': (('view_ns', 'Peut voir un objet ns'),)}, + ), + ] diff --git a/machines/models.py b/machines/models.py index ffdeb793..95c0962a 100644 --- a/machines/models.py +++ b/machines/models.py @@ -898,7 +898,7 @@ class Ns(models.Model): class Meta: permissions = ( - ("view_nx", "Peut voir un objet nx"), + ("view_ns", "Peut voir un objet ns"), ) @cached_property