support deleting extensions #69

Merged
Oleg-Komarov merged 8 commits from delete-extension into main 2024-04-05 19:11:05 +02:00
Showing only changes of commit a06dc17142 - Show all commits

View File

@ -207,13 +207,6 @@ class VersionDeleteView(
}, },
) )
def get_object(self, queryset=None):
return get_object_or_404(
Version,
extension__slug=self.kwargs['slug'],
pk=self.kwargs['pk'],
)
def _get_version_from_id(self): def _get_version_from_id(self):
version_id = self.kwargs['pk'] version_id = self.kwargs['pk']
version = self.extension.versions.filter(id=version_id).first() version = self.extension.versions.filter(id=version_id).first()