Answer the question
In order to leave comments, you need to log in
How to limit the ability to go to a specific url?
Good afternoon.
The bottom line is that there is a CBV for updating an existing record in the database:
class ResumeUpdate(UpdateView):
model = UserResume
form_class = ResumeForm
template_name = 'InteractiveProfile/update_resume.html'
url(r'(?P<pk>[0-9])_resume/update/$',
ResumeUpdate.as_view(success_url=('/profiles/')),
name='user_resume_update'),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question