Skip to content

Instantly share code, notes, and snippets.

@gilsondev
Created March 13, 2014 02:10
Show Gist options
  • Save gilsondev/9520733 to your computer and use it in GitHub Desktop.
Save gilsondev/9520733 to your computer and use it in GitHub Desktop.
Class based view created to ignore confirm delete page
class CourseDelete(DeleteView):
model = Course
success_url = reverse_lazy('app:success_url')
def get(self, *args, **kwargs):
"""Override to ignore confirm delete page"""
return self.post(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment