Re: delete button

2022-04-14 Thread Antonis Christofides
t, in about 50% of cases I solve the problem myself during the reduction process.) Regards, Antonis On 13/04/2022 07.32, 'Delvin Alexander' via Django users wrote: Hello everyone, i am having trouble. i created a delete button but my page does not confi

Re: delete button

2022-04-13 Thread 'Delvin Alexander' via Django users
yself during the reduction process.) > > Regards, > > Antonis > > On 13/04/2022 07.32, 'Delvin Alexander' via Django users wrote: > > Hello everyone, > > i am having trouble. i created a delete button but my page does not > confirm the deletion of the post,

Re: delete button

2022-04-12 Thread Antonis Christofides
.) Regards, Antonis On 13/04/2022 07.32, 'Delvin Alexander' via Django users wrote: Hello everyone, i am having trouble. i created a delete button but my page does not confirm the deletion of the post, nor does it redirect to another page. may someone help guide me on what it

delete button

2022-04-12 Thread 'Delvin Alexander' via Django users
Hello everyone, i am having trouble. i created a delete button but my page does not confirm the deletion of the post, nor does it redirect to another page. may someone help guide me on what it is i have done wrong and explain for me please? - I feel as though the problem could be located in my

[Solved] How to disable the the Delete button

2019-05-28 Thread Mike Dewhirst
hirst wrote: Django 1.11 and Python 3.6 but upgrading to Django 2.2 (slowly) Currently I use a get_readonly_fields callable in the Admin as documented[1]. The callable determines whether request.user is allowed to edit the editable fields or not. This works well.

[Solved] How to disable the the Delete button

2019-05-28 Thread Mike Dewhirst
8:37 am, Mike Dewhirst wrote: Django 1.11 and Python 3.6 but upgrading to Django 2.2 (slowly) Currently I use a get_readonly_fields callable in the Admin as documented[1]. The callable determines whether request.user is allowed to edit the editable fields or not. This works well. However, the re

How to disable the the Delete button

2019-05-28 Thread Mike Dewhirst
/use the Delete button. The abovementioned callable doesn't make their own records readonly so those users do need change (edit) permissions. Therefore I cannot use permissions to solve the problem. Can anyone suggest an approach? Thanks Mike [1] https://docs.djangoproject.com/en/1.1

Re: Django tables with check box and delete button

2018-10-16 Thread Andréas Kühne
I get an error > stating that 'POST is not allowed 405' and when I looked on the web, > somewhere it states that POST doesn't work with django listview. > > So any examples on generating a table with checkboxes which gives ability > to delete multiple records using a del

Re: Django tables with check box and delete button

2018-10-16 Thread Praveen Kumar
on the web, somewhere it states that POST doesn't work with django listview. So any examples on generating a table with checkboxes which gives ability to delete multiple records using a delete button would be helpful! On Tue 16 Oct, 2018, 1:35 PM Joel Mathew, wrote: > There's not much differ

Re: Django tables with check box and delete button

2018-10-16 Thread Joel Mathew
There's not much difference in doing this than what is standard practise. You just create the regular fields, loop over the ones creating multiple rows, assign unique name fields to each of them (you can use {{for.counter}} for this). You then capture the request with request.POST.getlist. On T

Django tables with check box and delete button

2018-10-16 Thread Praveen Kumar
Hello, Is there any django standard ways of creating a table with check boxes and let the user to select multiple rows using check box and the delete? Appreciate if anyone can help to provide an example to achieve this. Thanks, -- You received this message because you are subscribed to the Goo

Re: Using the ModelAdmin.inlines class, there is no DELETE button

2018-01-16 Thread Matemática A3K
On Tue, Jan 16, 2018 at 6:15 PM, Matemática A3K wrote: > According to https://code.djangoproject.com/ticket/15910: > "When adding a form to an inline formset in the admin interface it has a > nice "Remove" link added automatically. These links are however missing > from empty rows that have been

Re: Using the ModelAdmin.inlines class, there is no DELETE button

2018-01-16 Thread Matemática A3K
According to https://code.djangoproject.com/ticket/15910: "When adding a form to an inline formset in the admin interface it has a nice "Remove" link added automatically. These links are however missing from empty rows that have been created as a result from the "extra" option. They are also remove

Using the ModelAdmin.inlines class, there is no DELETE button

2018-01-13 Thread FernandoJMM
Good Morning, I'm customizing the ModelAdmin class inlines attribute. The code is this. class NaveInline(admin.TabularInline): model = Nave fields = ['codigoNave', 'nave', 'tipoPuesta'] ordering = ['codigoNave'] extra = 1 class GranjaAdmin(admin.ModelAdmin): fieldsets = [

Re: Reg: Delete Button is not removing the entry

2013-05-14 Thread Sergiy Khohlov
Available > > > I have a created a delete button above this table. When I click delete, it > says deleting Vol 1, but the entry is not removed. I have to reload the > page to see the changes. I have pasted the code below. How would i make it > to disappear without loading the page.

Reg: Delete Button is not removing the entry

2013-05-14 Thread Prithiv M
Hi, I have a form like as follows: VolName Desc Status --- Vol1SampleAvailable I have a created a delete button above this table. When I click delete, it says deleting Vol 1, but the entry is not removed. I have to reload the

Re: hiding the delete button

2009-09-30 Thread patcoll
Rajeesh, I forgot to thank you for the inspiration for the patch I submitted, so thanks! For future reference, it is also possible to disable the delete button by hard-coding the return value of "has_delete_permission" to False. An example from my code: class MenuAdmin(admin.

Re: hiding the delete button

2009-09-30 Thread patcoll
I was able to come up with a patch to solve the issue. With my patch, by passing {'show_delete': False} in with extra_context in the ModelAdmin change_view method, the delete button/icon is no longer shown. http://code.djangoproject.com/ticket/10057 On Sep 30, 1:40 pm, rajeesh wrote:

Re: hiding the delete button

2009-09-30 Thread rajeesh
Hi, I think the problem lies in ModelAdmin.render_change_form. Watch out the line of 'has_delete_permission' It reads as.. 'has_delete_permission': self.has_delete_permission(request, obj). It just don't know anything about the context variable 'show_delete'. Change the above line to .. 'has_de

hiding the delete button

2009-09-30 Thread patcoll
In the "admin/submit_line.html" template I can see options such as "show_delete_link", etc but cannot for the life of me figure out a programmatic way to set these values to False. Ideally, I would only like to display the "Save" button. (I realize I could override the "change_form" template for

Re: Adding delete button to a form.

2008-11-27 Thread dash86no
John, Thank you for the kind words and advice. Also, thanks for pointing out about the template requirements. My big problem with the method I posted above, ie: {% block options %} http://localhost:8000/sam/quote/ delete/{{ object.id }}">delete{% endblock %} is that it violates the DRY prin

Re: Adding delete button to a form.

2008-11-26 Thread John M
Dominic, Welcome to the django forum :) and welcome to django > Which I've tested and seems to be working ok. (The documentation, by > the way, didn't mention anything about requiring > foo_confirm_delete.html but I guess that's not too hard to figure out > from the error message) Actually, a

Re: Adding delete button to a form.

2008-11-26 Thread dash86no
t be a simple question, but I've just > spent the last hour trawling through the documentation, and can't for > the life for me find out how to add a "delete button" to a form. > > I've set up a generic view: > >        (r'^quote/delete/(

Adding delete button to a form.

2008-11-26 Thread dash86no
I'm sorry to ask what I feel must be a simple question, but I've just spent the last hour trawling through the documentation, and can't for the life for me find out how to add a "delete button" to a form. I've set up a generic view: