def get_context_data(self, **kwargs): context = super(SuccessView, self).get_context_data(**kwargs) context['title'] = 'Profile Update Successful' context['categories'] = get_category() context['meetups'] = get_meetup() context['year'] = datetime.now().year return context
def get_context_data(self, **kwargs): context = super(CreateProfileView, self).get_context_data(**kwargs) context['title'] = 'Create Profile' context['form'] = UpdateForm() context['categories'] = get_category() context['meetups'] = get_meetup() context['year'] = datetime.now().year return context
def get_context_data(self, **kwargs): context = super(PasswordView, self).get_context_data(**kwargs) context['title'] = 'Change Password' context['categories'] = get_category() context['meetups'] = get_meetup() context['form'] = PasswordForm() context['year'] = datetime.now().year return context
def get_context_data(self, **kwargs): context = super(UpdateLoginView, self).get_context_data(**kwargs) try: profile = User.objects.get(pk=self.request.user.pk) except User.DoesNotExist: context['profile'] = '' else: context['profile'] = profile context['categories'] = get_category() context['meetups'] = get_meetup() context['title'] = 'Update Login Details' context['year'] = datetime.now().year return context
def get_context_data(self, **kwargs): context = super(UpdateProfileView, self).get_context_data(**kwargs) try: profile = get_object_or_404(User, pk=self.request.user.pk) except User.DoesNotExist: context['profile'] = '' return HttpResponseRedirect('profiles:create_profile') else: context['profile'] = profile context['categories'] = get_category() context['meetups'] = get_meetup() context['title'] = 'Update Profile' context['year'] = datetime.now().year return context
def get_context_data(self, **kwargs): context = super(ProfileView, self).get_context_data(**kwargs) context['categories'] = get_category() context['meetups'] = get_meetup() context['title'] = "My Profile" context['year'] = datetime.now().year context['details'] = User.objects.filter(username=self.request.user) try: user_profile = Profile.objects.filter(user=self.request.user) except Profile.DoesNotExist: context['user_profile'] = '' else: context['user_profile'] = user_profile return context
def get_context_data(self, **kwargs): context = super(CreateSuggestionView, self).get_context_data(**kwargs) context['categories'] = get_category() context['meetups'] = get_meetup() context['title'] = 'Suggest a Talk' return context
def get_context_data(self, **kwargs): context = super(TalkListView, self).get_contex_data(**kwargs) context['categories'] = get_category() context['meetups'] = get_meetup() context['title'] = 'List of Talks' return context
def get_context_data(self, **kwargs): context = super(CreateTalkView, self).get_context_data(**kwargs) context['title'] = 'Submit A Talk' context['categories'] = get_category() context['meetups'] = get_meetup() return context
def get_context_data(self, **kwargs): context = super(SuggestionListView, self).get_contex_data(**kwargs) context['categories'] = get_category() context['meetups'] = get_meetup() context['title'] = 'View Suggested Talk' return context