Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fecea17a9d | ||
|
|
03062e3de5 |
@@ -139,6 +139,9 @@ class ServiceSessionView(LoginRequiredMixin, PermissionRequiredMixin, DetailView
|
|||||||
context_object_name = "session"
|
context_object_name = "session"
|
||||||
permission_required = "core.view_service"
|
permission_required = "core.view_service"
|
||||||
|
|
||||||
|
def get_permission_object(self, **kwargs):
|
||||||
|
return self.get_object().service
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
data = super().get_context_data(**kwargs)
|
data = super().get_context_data(**kwargs)
|
||||||
data["object"] = get_object_or_404(Service, pk=self.kwargs.get("pk"))
|
data["object"] = get_object_or_404(Service, pk=self.kwargs.get("pk"))
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import urllib.parse as urlparse
|
|||||||
from django.contrib.messages import constants as messages
|
from django.contrib.messages import constants as messages
|
||||||
|
|
||||||
# Increment on new releases
|
# Increment on new releases
|
||||||
VERSION = "v0.6.2"
|
VERSION = "v0.6.3"
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|||||||
Reference in New Issue
Block a user