Code refactorization
Django code refactorization.
Done.