Re: UpdateView and DeleteView

2023-08-27 Thread 'Simon Connah' via Django users
Will do! Thank you for your help. --- Original Message --- On Saturday, August 26th, 2023 at 19:30, Ruby wrote: > I'm glad it worked out,Consider using LoginRequiredMixin to ensure that > current user is authenticated before accessing the view. > > > On Sat, Aug 26, 2023, 16:23 'S

Re: UpdateView and DeleteView

2023-08-26 Thread Ruby
I'm glad it worked out, Consider using LoginRequiredMixin to ensure that current user is authenticated before accessing the view. On Sat, Aug 26, 2023, 16:23 'Simon Connah' via Django users < django-users@googlegroups.com> wrote: > Thank you! That is very helpful. > > --- Original Message --

Re: UpdateView and DeleteView

2023-08-26 Thread 'Simon Connah' via Django users
Thank you! That is very helpful. --- Original Message --- On Saturday, August 26th, 2023 at 14:07, Ruby wrote: > You can simply set a test case using the built-in user passes test > (https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_

Re: UpdateView and DeleteView

2023-08-26 Thread Ruby
You can simply set a test case using the built-in user passes test ( https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test ) On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users < django-users@googlegroups.com> wrote: > I want to make su