From 33175e6bc19cbf95742d2a37e1c2078fd6998073 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 13 Nov 2017 16:13:14 +0100 Subject: [PATCH] =?UTF-8?q?Django-field-permission=20ajout=C3=A9=20en=20su?= =?UTF-8?q?bmodule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 3 +++ field_permissions | 1 + machines/forms.py | 2 +- machines/models.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 field_permissions diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..cfc847dd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "field_permissions"] + path = field_permissions + url = https://github.com/tiliv/django-field-permissions.git diff --git a/field_permissions b/field_permissions new file mode 160000 index 00000000..45360372 --- /dev/null +++ b/field_permissions @@ -0,0 +1 @@ +Subproject commit 4536037247c8a04ccb34ed9d5fa5b0d866286fbd diff --git a/machines/forms.py b/machines/forms.py index 94fc5174..f6b0db09 100644 --- a/machines/forms.py +++ b/machines/forms.py @@ -56,7 +56,7 @@ from .models import ( OuverturePortList, ) -from field_permissions.forms import FieldPermissionFormMixin +from field_permissions.fied_permissions.forms import FieldPermissionFormMixin class EditMachineForm(FieldPermissionFormMixin, ModelForm): diff --git a/machines/models.py b/machines/models.py index 3a0589ba..42a26b5d 100644 --- a/machines/models.py +++ b/machines/models.py @@ -35,7 +35,7 @@ from django.utils.functional import cached_property from django.utils import timezone from django.core.validators import MaxValueValidator -from field_permissions.models import FieldPermissionModelMixin +from field_permissions.field_permissions.models import FieldPermissionModelMixin from macaddress.fields import MACAddressField