in contact_form views.py changed fixed request.method to self.request.method