musician websites visualizacion
This commit is contained in:
parent
60771b7808
commit
bb4fc5e267
|
@ -44,4 +44,5 @@ urlpatterns = [
|
|||
path('webappuser/<int:pk>/change-password/', views.WebappUserChangePasswordView.as_view(), name='webappuser-password'),
|
||||
path('systemusers/', views.SystemUserListView.as_view(), name='systemuser-list'),
|
||||
path('systemuser/<int:pk>/change-password/', views.SystemUserChangePasswordView.as_view(), name='systemuser-password'),
|
||||
path('websites/', views.WebsiteListView.as_view(), name='website-list'),
|
||||
]
|
||||
|
|
|
@ -33,6 +33,7 @@ from orchestra.contrib.mailboxes.models import Address, Mailbox
|
|||
from orchestra.contrib.resources.models import Resource, ResourceData
|
||||
from orchestra.contrib.saas.models import SaaS
|
||||
from orchestra.contrib.systemusers.models import WebappUsers, SystemUser
|
||||
from orchestra.contrib.websites.models import Website
|
||||
from orchestra.utils.html import html_to_pdf
|
||||
|
||||
from .auth import logout as auth_logout
|
||||
|
@ -650,3 +651,11 @@ class SystemUserChangePasswordView(CustomContextMixin, UserTokenRequiredMixin, U
|
|||
|
||||
def get_queryset(self):
|
||||
return self.model.objects.filter(account=self.request.user)
|
||||
|
||||
class WebsiteListView(ServiceListView):
|
||||
model = Website
|
||||
template_name = "musician/website_list.html"
|
||||
extra_context = {
|
||||
# Translators: This message appears on the page title
|
||||
'title': _('Websites'),
|
||||
}
|
Loading…
Reference in New Issue