Skip to content

Lesson 10 (part2 lesson2) errors#11

Open
NikosPodin wants to merge 31 commits intomasterfrom
Lesson_10_(part2_lesson2)_
Open

Lesson 10 (part2 lesson2) errors#11
NikosPodin wants to merge 31 commits intomasterfrom
Lesson_10_(part2_lesson2)_

Conversation

@NikosPodin
Copy link
Owner

ERRORS

class Meta:
model = UserProfile
fields = ('tagline', 'about', 'gender',)
fields = ('tagline', 'about', 'gender', )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лишний пробел в конце. Последняя запятая тоже лишняя.

# return render(request, 'users/profile.html', context)

class ProfileFormView(UpdateView, BaseClassContextMixin, UserDispatchMixin): # CustomDispatchMixin, LoginRequiredMixin
return redirect(self.success_url)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это к чему относится?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants