#29136: CreateView documentation incomplete
-------------------------------------+-------------------------------------
               Reporter:  linurandy  |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  2.0
  Documentation                      |       Keywords:  CreateView,
               Severity:  Normal     |  documentation
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 In that url [https://docs.djangoproject.com/es/1.10/topics/class-based-
 views/generic-editing/] and [https://docs.djangoproject.com/es/2.0/topics
 /class-based-views/generic-editing/,] when create the **class
 AuthorCreate(CreateView):**, don't have absolute_url, this brings as a
 problem confusion.


 {{{
 from django.views.generic.edit import CreateView, UpdateView, DeleteView
 from django.urls import reverse_lazy
 from myapp.models import Author

 class AuthorCreate(CreateView):
     model = Author
     fields = ['name']

 class AuthorUpdate(UpdateView):
     model = Author
     fields = ['name']

 class AuthorDelete(DeleteView):
     model = Author
     success_url = reverse_lazy('author-list')
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29136>
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/052.3407a12583f6540d963eb9243c2d50df%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to