Alfanous-team/alfanous — pull request #350 by mdebbar (2014-01-01 12:10:57+00:00)
Title: Cleanup views.py code.

- Remove unnecessary imports.
- Fix indentation in the file.
- Use some comprehensions and shortcuts like: dict(), sorted(), iteritems() ...
- Move some logic into separate functions.

@assem-ch plz test this carefully since you know the edge cases better than me.