feat(backend): add blog publishing platform
Some checks failed
Backend CI/CD / test (push) Has been cancelled
Backend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-06-08 21:31:06 +03:30
parent b7b21a6cc6
commit 954e78d0cb
14 changed files with 1334 additions and 278 deletions

View File

@@ -28,6 +28,9 @@ class SoftDeleteListFilter(admin.SimpleListFilter):
class BaseModelAdmin(ModelAdmin):
actions = ["hard_delete_selected", "restore_selected"]
def has_delete_permission(self, request, obj=None):
return bool(request.user and request.user.is_superuser)
def get_queryset(self, request):
return self.model.all_objects.all()