I have a Django site I'm developing, which I've connected to a MySQL db. I
haven't deployed into production yet, as I'm still working on a couple of
things, however I leave the server running in development for initial data
entry.
I've noticed that some of the records already inputted gets de
m:* django...@googlegroups.com [mailto:
> django...@googlegroups.com ] *On Behalf Of *RyanW
> *Sent:* Monday, October 22, 2018 7:55 PM
> *To:* Django users
> *Subject:* Django auto-deletes field related to MySQL Transactions
>
>
>
> I have a Django site I'm developi
oesn’t seem like Django would be doing this.
>
> Do you have any other apps connected to the database?
>
> You’ll probably want to surround your URL in quotation marks. url ‘epedelete’ epe.id %}”>
>
>
>
>
>
> *From:* django...@googlegroups.com [mailto:
> dj
ngo...@googlegroups.com
> *Subject:* Re: Django auto-deletes field related to MySQL Transactions
>
>
>
> You could have a signal which captures all these and logs its origin.
>
>
>
> On Tue, 23 Oct, 2018, 9:35 PM RyanW, >
> wrote:
>
> Yes, I honestly don'
nerating a
> new database and using that. See if you still get random deletes on that
> database.
>
>
>
> *From:* django...@googlegroups.com [mailto:
> django...@googlegroups.com ] *On Behalf Of *RyanW
> *Sent:* Wednesday, October 24, 2018 9:51 AM
> *To:* Djan
re
> considered by the browser to be safe (non-destructive) and ideally
> idempotent. YOu should _never_ put a destructive action behind a GET, it
> should always be behind a POST or (even better if you are going the full
> REST route) DELETE.
>
> On Wednesday, October 24, 2
els that is
> causing the deletion? Is a user deleting another object, and that is
> triggering a cascade delete on a different model?
>
> Mark
>
> On Wed, Oct 24, 2018 at 4:22 PM RyanW >
> wrote:
>
>> Yes, it is. Are you referring to 'delete' method in my
Thanks for the info. Do you know of a way that I can confirm this is
happening?
Best,
- Ryan
On Thursday, October 25, 2018 at 8:37:35 AM UTC-5, C. Kirby wrote:
>
> The delete method in your views, yes, but also how you build the button.
> You should use a form with a hidden field (the id to del
8 matches
Mail list logo