fix: Only allow users to create rels as source

There is now no field for users to define the source of a relationship
The source is always the person in the URL
And only that user or staff can access the form
This commit is contained in:
James Graham
2020-08-14 17:38:22 +01:00
parent 6435ec69a1
commit a94db2713e
4 changed files with 50 additions and 39 deletions

View File

@@ -19,7 +19,11 @@ from django.urls import include, path
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('admin/',
admin.site.urls),
path('select2/',
include('django_select2.urls')),
path('',
include('django.contrib.auth.urls')),
@@ -36,4 +40,4 @@ urlpatterns = [
path('',
include('activities.urls')),
]
] # yapf: disable