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
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,
.)
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
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
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.
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
/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
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
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
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
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
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
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
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 = [
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.
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
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.
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:
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
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
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
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
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/(
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:
24 matches
Mail list logo