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
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
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
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
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
>>
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
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
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
: 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
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'
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
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
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
: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
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
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
16 matches
Mail list logo