support deleting extensions #69
@ -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):
|
||||
version_id = self.kwargs['pk']
|
||||
version = self.extension.versions.filter(id=version_id).first()
|
||||
|
Loading…
Reference in New Issue
Block a user