Created
March 13, 2014 02:10
-
-
Save gilsondev/9520733 to your computer and use it in GitHub Desktop.
Class based view created to ignore confirm delete page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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