#25473: Docs: 'author-detail' vs 'author_update'
--------------------------------------+--------------------
Reporter: guettli | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Please use **one** form to refer to the update-view of
a model.
Here are two: 'author-detail' vs 'author_update'
{{{
def get_absolute_url(self):
return reverse('author-detail', kwargs={'pk': self.pk})
}}}
from https://docs.djangoproject.com/en/1.8/topics/class-based-views
/generic-editing/#model-forms
some lines below the above link:
{{{
url(r'author/(?P<pk>[0-9]+)/$', AuthorUpdate.as_view(),
name='author_update'),
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25473>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.9076e8d91cbc4f87146b0e3aee886bb4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.