It is just a method on the Article model. Don't copy-paste what is there,
understand what it is doing.

In this *example*, update_counter() will be defined in
Article(models.Model), probably in models.py in the app. You obliged to use
anything like this in your redirect.

HTH,

On Sun, Jun 20, 2021 at 10:21 PM Hello Singh <[email protected]> wrote:

> Now I am trying Django class based view through Django documentation it
> going well, but I a problem in RedirectView.
>
> There is `update_counter()` method I don't understand what it is doing and
> where it come from. I highlight it in the given image.
>
> Please help me
> Thanks developers
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE5VhgX4s-oqRqg%2B9zw2UBE-tmLEz0jnJDUDSXcXqtO976rhYA%40mail.gmail.com.

Reply via email to