-class ShopPublishView(PermissionRequiredMixin, View):
- permission_required = 'depot.add_shopbookpublish'
+class SitePublishView(PermissionRequiredMixin, View):
+ permission_required = 'depot.add_sitebookpublish'
- def post(self, request, shop_id, book_id):
- shop = get_object_or_404(models.Shop, pk=shop_id)
+ def post(self, request, site_id, book_id):
+ site = get_object_or_404(models.Site, pk=site_id)