Re: Django auto-deletes field related to MySQL Transactions

2018-10-27 Thread RyanW
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

Re: Django auto-deletes field related to MySQL Transactions

2018-10-25 Thread C. Kirby
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 delete), and the button ("Delete") should be the form submit. Then on the view side you should use a standard form handler (if request.POSTetc) to handle things. Wha

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
gt;>> >>>>> Hi Matthew and Joel. Thanks for your help. >>>>> >>>>> >>>>> >>>>> I'm attaching the models.py, views.py and templates for your >>>>> reference. I'm drawing a blank on the implement

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread Mark Phillips
and templates for your >>>> reference. I'm drawing a blank on the implementation that could trigger a >>>> delete. >>>> >>>> >>>> >>>> Thanks again >>>> >>>> >>>> On Tuesday, October 23, 2018 a

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
tation that could trigger a delete. >>> >>> >>> >>> Thanks again >>> >>> >>> On Tuesday, October 23, 2018 at 11:54:17 AM UTC-5, Matthew Pava wrote: >>> >>> And make sure your form is posting to the save view and not the delete >>

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread C. Kirby
on that >> database. >> >> >> >> *From:* django...@googlegroups.com [mailto:django...@googlegroups.com] *On >> Behalf Of *RyanW >> *Sent:* Wednesday, October 24, 2018 9:51 AM >> *To:* Django users >> *Subject:* Re: Django auto-deletes field re

RE: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread Matthew Pava
users Subject: Re: Django auto-deletes field related to MySQL Transactions I've tried two separate MySQL db's on two separate servers. They both have given me deletes. What's strange is that I've set up a local copy on my laptop with both a local Postgres DB and MySQL con

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
om:* django...@googlegroups.com [mailto:django...@googlegroups.com] *On > Behalf Of *Joel > *Sent:* Tuesday, October 23, 2018 11:32 AM > *To:* django...@googlegroups.com > *Subject:* Re: Django auto-deletes field related to MySQL Transactions > > > > You could have a signal which

RE: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread Matthew Pava
: Django users Subject: Re: Django auto-deletes field related to MySQL Transactions Hi Matthew and Joel. Thanks for your help. I'm attaching the models.py, views.py and templates for your reference. I'm drawing a blank on the implementation that could trigger a delete. Thanks again

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
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'

RE: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread Matthew Pava
bly want to surround your URL in quotation marks. http://epe.id> %}”> From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of RyanW Sent: Tuesday, October 23, 2018 9:33 AM To: Django users Subject: Re: Django auto-deletes field related to MySQL Transactions I

Re: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread Joel
ll probably want to surround your URL in quotation marks. > href=”{% url ‘epedelete’ epe.id %}”> >> >> >> >> >> >> *From:* django...@googlegroups.com [mailto:django...@googlegroups.com] *On >> Behalf Of *RyanW >> *Sent:* Tuesday, October 23, 201

Re: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread RyanW
ango...@googlegroups.com ] *On Behalf Of *RyanW > *Sent:* Tuesday, October 23, 2018 9:33 AM > *To:* Django users > *Subject:* Re: Django auto-deletes field related to MySQL Transactions > > > > I have a button to delete a record by the user, displayed inside a > template a

RE: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread Matthew Pava
:33 AM To: Django users Subject: Re: Django auto-deletes field related to MySQL Transactions I have a button to delete a record by the user, displayed inside a template as: and the function in views.py def delete(request, part_id=None): obj = epe.objects.get(id=part_id) obj.delete

Re: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread RyanW
I have a button to delete a record by the user, displayed inside a template as: and the function in views.py def delete(request, part_id=None): obj = epe.objects.get(id=part_id) obj.delete() return HttpResponseRedirect(reverse('epe_home')) Other than that, I have some ForeignKey r

RE: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread Matthew Pava
Check your source code for any delete commands. This might also be your authentication backend. Which one are you using? From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of RyanW Sent: Monday, October 22, 2018 7:55 PM To: Django users Subject: Django auto-dele