Saturday, August 26, 2023

UpdateView and DeleteView

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wnUEARYKACcFgmTp0YkJkFrvKC74ta6lFiEEXOYF9uqFRn4815bYWu8oLvi1
rqUAALfUAP9IXS8CSOvH/BwW5tcVfXTgT2YTWrVx5WcLK9ol8uby3QD+JnK7
i4+jcEjZvdfJBQ0H6EfllzQvwYYCos/KLHh2dg4=
=TFwU
-----END PGP SIGNATURE-----

I want to make sure that the only people who can update and delete an object are either superusers or the person that originally created them but I'm not sure how to go about doing it. Can someone point me in the right direction?

I'm not sure which method(s) to override.

Thank you.

--
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/RC50Lr8yv1j7M_cjvPHLpvLJ1RzHJP3QQaF5oQu4vAmfeijfMbprfVyyHGTIvg9udwKhe_-XcM9tYH9tRyaX-MDQauXKf3PiJbMOq2hEfj4%3D%40protonmail.com.

No comments:

Post a Comment