Class Based Views

Issue #30 resolved
Former user created an issue

I was working with this package and I needed to use TemplateResponse objects instead of HttpResponse objects, so I took the time to transform the current function based views into CBV in order to make the views a little bit easier to customize. I couldn't do a pull request due to a "Access Denied" error.

I tried to keep the code as close as possible to the original. I also made sure to run all the tests and they all pass successfully.

Here's the changeset:

https://bitbucket.org/volrath/django-postman/commits/18507654410c979eb0ab825b1b7e58939be8b682?at=default

I know this is a big change and might break compatibility with >=Django1.2 so maybe this could start a new branch. Please let me know if you have some feedback on things that can be improved.

Comments (4)

  1. Patrick Samson repo owner

    Integrated in version 3.0.0. Compared to your version, I made some minor changes. Thanks again for your contribution.

  2. Log in to comment