UpdateView and DeleteView

2023-08-26 Thread 'Simon Connah' via Django users
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 rec

Re: UpdateView and DeleteView

2023-08-26 Thread 'Simon Connah' via Django users
efault/#django.contrib.auth.decorators.user_passes_test) > > On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users > wrote: > > > 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&#x

Re: UpdateView and DeleteView

2023-08-27 Thread 'Simon Connah' via Django users
Aug 26, 2023, 16:23 'Simon Connah' via Django users > wrote: > > > Thank you! That is very helpful. > > > > > > --- Original Message --- > > On Saturday, August 26th, 2023 at 14:07, Ruby > > wrote: > > > > &g

Splitting views.py and urls.py into a directory rather than single files

2023-09-18 Thread 'Simon Connah' via Django users
way to go about doing that is. Can someone point me in the right direction please? Thank you! Simon. -- 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 em

Re: Splitting views.py and urls.py into a directory rather than single files

2023-09-18 Thread 'Simon Connah' via Django users
s file > > On Mon, Sep 18, 2023 at 5:28 PM 'Simon Connah' via Django users > wrote: > > > Hi, > > > > I have an app which has a lot of views and URLs and keeping them in just > > one file makes it really hard to manage because it is so long. I'd l

Unit test to make sure correct template is returned from a specific URL?

2023-09-24 Thread 'Simon Connah' via Django users
I can write a unit test which checks say the title on a page and compares it to a string but that is really prone to breakage. What I want to do instead is to check that the template that is returned by the URL is the same one that is expected in the unit test. Is there an easy way to do this?

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread 'Simon Connah' via Django users
Sun, 24 Sept 2023 at 22:37, 'Simon Connah' via Django users > wrote: > > > I can write a unit test which checks say the title on a page and compares > > it to a string but that is really prone to breakage. What I want to do > > instead is to check that the templat

Strange bug with Firefox

2023-10-14 Thread 'Simon Connah' via Django users
a browser extension so I removed them all (apart from Bitwarden) and completely cleared the history but none of that seems to have fixed the issue. I'm at a loss. Can someone suggest what might be going on here? As I said it works fine in Chrome. Simon. -- You received this message because you

Registration form in template

2024-03-17 Thread 'Simon Connah' via Django users
? Thank you. Simon. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web vi

Weird issue with a form

2024-03-19 Thread 'Simon Connah' via Django users
then moved to /user/accounts/. I have added the get_success_url to point to the correct URL using reverse but even that doesn't work. Can someone help me out with this please? Thank you. Simon. -- You received this message because you are subscribed to the Google Groups "Django u

<    3   4   5   6   7   8