What view in specific ?.
If you refering to the "get_queryset" view if simple as.
from django.views.generic import View
Class get_queryset(View):
def get(self, request):
"""
Return the last five published questions (not including those set
to bepublished in the future)."""
Hi.
What is your specific problem ?.
In the stackoverflow Q, there is already a code view based on CBV.
On Mon, Dec 30, 2019 at 12:49 PM Moaaz Afzal
wrote:
>
> https://stackoverflow.com/questions/59510325/is-there-is-any-way-to-convert-this-fbv-to-cbv-in-polls-tutorial-of-djangotutori/59510529
2 matches
Mail list logo