Sunday, June 20, 2021

Re: Need help on RedirectView

Thanks, David Sir
It help me a lot.

On Sun, 20 Jun 2021, 18:21 David Nugent, <davidn@uniquode.io> wrote:
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 <hello23singh@gmail.com> 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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgX4s-oqRqg%2B9zw2UBE-tmLEz0jnJDUDSXcXqtO976rhYA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEoS0z6G5i2K8u-p%2BjFJf6WzPV2SGVpP_gjuFY9oiqb-2m4-DA%40mail.gmail.com.

No comments:

Post a Comment