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