Re: Django Admin Shortcuts

2024-05-29 Thread Faisal Mahmood
ly. Please >> let me know if you have any further questions! >> >> 1. >> Have you considered including a section in the Django admin documentation >> that outlines the new shortcuts and how to use them? >> >> Yes, I absolutely will document this, I was thinki

Re: Django Admin Shortcuts

2024-05-28 Thread utibe solomon
he PR and provide some feedback. I > copied all of your concerns here and responded to them accordingly. Please > let me know if you have any further questions! > > 1. > Have you considered including a section in the Django admin documentation > that outlines the new shortcuts and

Re: Django Admin Shortcuts

2024-05-28 Thread Faisal Mahmood
here and responded to them accordingly. Please > let me know if you have any further questions! > > 1. > Have you considered including a section in the Django admin documentation > that outlines the new shortcuts and how to use them? > > Yes, I absolutely will document this, I was

Re: Django Admin Shortcuts

2024-05-28 Thread Mike Schem
Hey Faisal, Thanks for taking the time to read the PR and provide some feedback. I copied all of your concerns here and responded to them accordingly. Please let me know if you have any further questions! 1. Have you considered including a section in the Django admin documentation that outlines

Re: Django Admin Shortcuts

2024-05-25 Thread Faisal Mahmood
Hi *Mike Schem, Thank you for reaching out and for your work on adding keyboard shortcuts to the Django admin. This is a valuable feature that can greatly enhance productivity for many users. We appreciate your contribution and the effort you've put into this PR. We have reviewed your

Django Admin Shortcuts

2024-05-24 Thread Mike Schem
Hey all, I’m seeking some support and feedback on my PR. I’ve added keyboard shortcuts to the Django admin for the save actions. We use it at my company, and it’s pretty helpful for power users. I’d love to hear what the community thinks. https://github.com/django/django/pull/17599 Mike Schem

Wrong ordering of many-to-many fields with explicit intermediary model in Django admin

2023-11-01 Thread Alan Evangelista
Hi, all. I have a Submission model with a many-to-many relationship with a Market model and explicitly defined a SubmissionMarket model as intermediary model. I have defined Submission inlines in a ModelAdmin class (used by Django admin) and defined the markets field as the first one in the

Django Admin Dropdown Filtering: Show Exam Class Related Students in Student Assign Field

2023-09-01 Thread Sabbir Hasan Munna
https://stackoverflow.com/q/77018469/9885741 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion o

Overriding the default django admin panel with a fully customized Rest Framework + React Dashboard

2023-04-15 Thread Kimanxo
e the website should be managed from, however , the built in django admin panel is lacking lot of features that i want to implement. The question is : Im using React with django, can I just create a custom template using react and rest framework and override the admin app ? Meaning that if I

Re: Django Admin does not use `get_FOO_display`

2023-04-05 Thread Opeoluwa Fatunmbi
The reason why your overridden get_status_display method is not being applied in the Django admin is because the admin's display_for_field function uses the flatchoices attribute of the field to retrieve the display value of the field's current value. The flatchoices attribute is a l

Django Admin does not use `get_FOO_display`

2023-04-04 Thread 'Ibrahim Abou Elenein' via Django users
I had a model having a field that uses Choices status = FSMField(default=STATUSES.PENDING, choices=STATUSES, protected=True) I did override the `get_status_display ` and its effect was not applied in the Django admin I looked up Django code and found ``` def display_for_field(value

Re: Django Admin

2023-03-24 Thread Jd Mehra
- Clear the browser cache and cookies and then try to log in again. Sometimes an old CSRF token can be stored in the browser cache and can cause issues. - On Friday, 24 March 2023 at 07:50:37 UTC+5:30 Ikrombek wrote: > > Hello, > How can I use dental teeth section. For example, do I need

Re: Django Admin

2023-03-23 Thread Ikrombek
Hello, How can I use dental teeth section. For example, do I need to include 32 fields from the model to specify 32 teeth, or is there a way to do it in one? On Tuesday, March 14, 2023 at 5:39:27 AM UTC+5 Muhammad Juwaini Abdul Rahman wrote: > In my previous case, I only use this: > > CSRF_TRU

Clickable link in django admin Panel

2023-03-22 Thread Gurami Tchumburidze
I have problem to display clickable link in django admin panel next to 'icon' field or add help_text witch will be clickable and if i click on it, it must open this 'https://fonts.google.com/icons?icon.set=Material+Icons' website in new window of browther . [image: 111

Re: Django Admin

2023-03-13 Thread Muhammad Juwaini Abdul Rahman
In my previous case, I only use this: CSRF_TRUSTED_ORIGINS = ['https://your site url',] On Tue, 14 Mar 2023 at 04:33, Prosper Lekia wrote: > This is how I deal with all csrf related issues. > > Make sure csrf MiddleWare is in your MiddleWare list > > 'django.middleware.csrf.CsrfViewMiddleware'

Re: Django Admin

2023-03-13 Thread Prosper Lekia
This is how I deal with all csrf related issues. Make sure csrf MiddleWare is in your MiddleWare list 'django.middleware.csrf.CsrfViewMiddleware' Add the settings below in your settings.py to prevent all csrf related issues CSRF_TRUSTED_ORIGINS = ['https://your site url',] SECURE_PROXY_SSL_HE

Re: Django Admin

2023-03-13 Thread Starnford Chirwa
Howzt bro On Sat, 11 Mar 2023, 22:48 Letlaka Tsotetsi, wrote: > Please share your code so we can be able to assist you > > On Sat, 11 Mar 2023 at 8:04 PM, James Hunt wrote: > >> Hi there. I am fairly new to Django but have had previous success with >> creating an app and being able to access th

Re: Django Admin

2023-03-13 Thread Sandip Bhattacharya
> On Mar 13, 2023, at 5:14 AM, James Hunt wrote: > > I have yet to create a HTML page so I'm not sure that the inclusion of {% > csrf_token %} is required. I mean it's just the admin page I am trying to > access which is provided by Django and not a page created by me!!! > > I am very surpri

Re: Django Admin

2023-03-13 Thread Paul Kudla
ok hope i am not adding to the confusion I ran into this a while back CSRF errors are usually (in my case anyways) triggered by apache SSL setup etc if you are running Apache + SSL you need to make sure the certificates and the SNI ssl naming is setup correctly or the CSRF errors will tri

Re: Django Admin

2023-03-13 Thread James Hunt
Hi there. I have yet to add a login/register page since I am only trying to access the admin page which is a part of the Django project setup. So in effect, there are no HTML pages setup and I cant access the Django admin page layout as this is an integral part of Django!!! This is the problem

Re: Django Admin

2023-03-13 Thread Andrew Romany
It's very simple you should add it in the login/register html page but inside the tag after & to be specific after this above line. On Mon, 13 Mar 2023, 11:15 a.m. James Hunt, wrote: > I have yet to create a HTML page so I'm not sure that the inclusion of {% > csrf_token %} is required. I mean

Re: Django Admin

2023-03-13 Thread James Hunt
I have yet to create a HTML page so I'm not sure that the inclusion of {% csrf_token %} is required. I mean it's just the admin page I am trying to access which is provided by Django and not a page created by me!!! I am very surprised there is no fix for this issue!!! I might need to abandon Dj

Re: Django Admin

2023-03-12 Thread Mir Junaid
try including this line in your index.html or main HTML page {% csrf_token %} if it still doesn't work do include it in every html page On Sat, 11 Mar 2023 at 23:33, James Hunt wrote: > Hi there. I am fairly new to Django but have had previous success with > creating an app and being able to acc

Re: Django Admin

2023-03-12 Thread James Hunt
> I have literally set this up today just to prove that it happens for >> every Django project setup!!! >> >> So this is my settings : >> >> >> """ >> Django settings for DjangoTest project. >> >> Generated by

Re: Django Admin

2023-03-12 Thread Muhammad Juwaini Abdul Rahman
Have you tried my suggestion? On Sun, 12 Mar 2023 at 20:32, James Hunt wrote: > I have literally set this up today just to prove that it happens for every > Django project setup!!! > > So this is my settings : > > > """ > Django settings for DjangoTest

Re: Django Admin

2023-03-12 Thread James Hunt
I have literally set this up today just to prove that it happens for every Django project setup!!! So this is my settings : """ Django settings for DjangoTest project. Generated by 'django-admin startproject' using Django 4.1.7. For more informatio

Re: Django Admin

2023-03-12 Thread Muhammad Juwaini Abdul Rahman
I think you need to add the following in settings.py: CSRF_TRUSTED_ORIGIN = ('') On Sun, 12 Mar 2023 at 02:04, James Hunt wrote: > Hi there. I am fairly new to Django but have had previous success with > creating an app and being able to access the Admin page. > Recently, if I attempt to acce

Re: Django Admin

2023-03-11 Thread Letlaka Tsotetsi
Please share your code so we can be able to assist you On Sat, 11 Mar 2023 at 8:04 PM, James Hunt wrote: > Hi there. I am fairly new to Django but have had previous success with > creating an app and being able to access the Admin page. > Recently, if I attempt to access the admin page of a new

Re: Django Admin

2023-03-11 Thread Victor Matthew
Show your cold pleased On Sat, 11 Mar 2023, 7:04 pm James Hunt, wrote: > Hi there. I am fairly new to Django but have had previous success with > creating an app and being able to access the Admin page. > Recently, if I attempt to access the admin page of a new Django app it > throws the CSRF e

Re: Django Admin

2023-03-11 Thread Obam Olohu
Hello there, you can send a meeting link, I’ll fix the issue for you Sent from my iPhone > On 11 Mar 2023, at 12:31 PM, James Hunt wrote: > > Hi there. I am fairly new to Django but have had previous success with > creating an app and being able to access the Admin page. > Recently, if I atte

Re: Django Admin

2023-03-11 Thread Balogun Awwal
Check out this link but are you using csrf token before accepting any input. https://stackoverflow.com/questions/3197321/csrf-error-in-django Sent from awwal > On 11 Mar 2023, at 7:04 PM, James Hunt wrote: > > Hi there. I am fairly new to Django but have had previous success with > creating

Django Admin

2023-03-11 Thread James Hunt
Hi there. I am fairly new to Django but have had previous success with creating an app and being able to access the Admin page. Recently, if I attempt to access the admin page of a new Django app it throws the CSRF error upon trying to log in!!! I have attempted several ways to bypass this error

Django admin only one group per user

2023-02-15 Thread Joao Frankmann
I am creating a customised Django Admin and I want to restrict users to be associated to no more than one group. I am using Django 4.1 and Python 3.11 admin.py: ``` from django.contrib import admin from typing import Set from django.contrib.auth.models import User from

Re: DJANGO ADMIN SPECIFICATION

2022-09-11 Thread chahat kaur
ceracademy.org > *Website *: www.bluebirdsocceracademy.org > Sports | Mentorship | Leadership | Girl Child Empowerment > > > On Sat, Sep 10, 2022 at 7:21 PM nana kwame wrote: > >> Please I would like to ask if Django admin can be used to update and >> delete and create w

Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread Dushime Mudahera Richard
Sep 10, 2022 at 7:21 PM nana kwame wrote: > Please I would like to ask if Django admin can be used to update and > delete and create webpages also. And also if it can be used to update > information on the user side from the admin panel. Thank You > > -- > You received this message beca

Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread 'Kasper Laudrup' via Django users
On 10/09/2022 03.24, nana kwame wrote: Please I would like to ask if Django admin can be used to update and delete and create webpages also. If you write the appropriate models and views then yes, it can. And also if it can be used to update information on the user side from the admin panel

DJANGO ADMIN SPECIFICATION

2022-09-10 Thread nana kwame
Please I would like to ask if Django admin can be used to update and delete and create webpages also. And also if it can be used to update information on the user side from the admin panel. Thank You -- You received this message because you are subscribed to the Google Groups "Django

Django-Admin : OveOrride add-URL of the Foreign Key Auto-Complete "add" button / + green cross

2022-09-08 Thread luigim...@gmail.com
Hello Community, *Goal* : adding a parameter to the add_url embedded by the green cross of a foreignkey field in the django-admin details view. [image: Screenshot 2022-09-08 at 12.00.39.png] *Solution* : pass my parameter as a widget attrs through the *formfield_for_dbfield* method and

Forbidden error- login to django admin

2022-09-02 Thread Amal Babu
I try to deploy my django project on railway. But i got this error[image: Screenshot 2022-09-02 102845.png] my prod settings --> import os from .common import * DEBUG = False SECRET_KEY = os.environ.get('SECRET_KEY') ALLOWED_HOSTS = ['web-production-b9a0.up.railway.app', 'co

Re: django-admin startproject --template error

2022-08-08 Thread 'Kasper Laudrup' via Django users
On 08/08/2022 10.46, xu brandy wrote: WechatIMG75.png An error was reported using the GITLab repository to specify template creation projects And you expect everyone to be able to guess which Gitlab repository you're talking about? You even made an effort trying to hide it. But whatever

Code produced by "django-admin startproject" isn't formatted by black

2022-06-23 Thread Paweł Adamczak
Hi! I just run "django-admin startproject" command on the latest Django version (4.0.5) and noticed that the code it generated isn't formatted by black, even though #33476 <https://code.djangoproject.com/ticket/33476> explicitly mentions that it should. I wasn't sur

Re: django-admin-honeypot

2022-05-16 Thread Jeremy Lainé
is that django-admin-honeypot needs to be updated to work with recent Django versions, see: https://github.com/dmpayton/django-admin-honeypot/issues/87 Cheers, Jeremy On Tuesday, May 10, 2022 at 7:48:38 AM UTC+2 chsuresh...@gmail.com wrote: > Hi , > While i am including the django-admin-ho

Django Admin external script before save/delete

2022-05-10 Thread Thiago Luiz Parolin
Hello everyone, I'm trying to run a script before saving and deleting objects in db using django admin. If the script fails, the action (save or delete) needs to be aborted and we need to inform the user with a message. In the django docs: "...When overriding ModelAdmin.

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-14 Thread Mike Dewhirst
ssage From: Antonis Christofides <anto...@antonischristofides.com> Date: 15/4/22 01:26 (GMT+10:00) To: django-users <django-users@googlegroups.com> Subject: Re: Possible Django Admin or auth bug or Mozilla bug I haven't tried it, but I have a few observations on yo

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-14 Thread Antonis Christofides
I haven't tried it, but I have a few observations on your template code. First, it would be better to use "{% static %}" instead of hardcoding the url to the static files. Second, "{% blcok extrastyle %}" is obviously wrong for this, it should be extrajs. However,

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Mike Dewhirst
On 14/04/2022 11:36 am, Mike Dewhirst wrote: Thanks Antonis OK - the problem has two workarounds. One is to use Chrome. Two is https://code.djangoproject.com/ticket/33386 which suggests including some javascript to disable Firefox autocomplete ... $('form').attr('autocomplete', 'off').each(f

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Mike Dewhirst
Thanks Antonis OK - the problem has two workarounds. One is to use Chrome. Two is https://code.djangoproject.com/ticket/33386 which suggests including some javascript to disable Firefox autocomplete ... $('form').attr('autocomplete', 'off').each(function () { this.reset(); }); ... b

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Antonis Christofides
It happens here as well as far as I can see (tested on a Debian 11 server running Django 3.2.12). The "Chosen groups" box seems to be created by JavaScript; if I run it with JavaScript disabled then it doesn't exist. Apparently JavaScript creates the box and then populates it and accordingly r

Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Mike Dewhirst
I don't know how long this has been happening for me. Happens on Windows 10 in Mozilla Firefox but not Chrome.  In the Admin User screen where there are two boxes of Groups labelled 'Available groups' and 'Chosen groups' with controls to move groups between boxes, everything seems to work perf

Django admin Ordering the display

2022-04-02 Thread Ali Hamza
How i Order this field descending order. i want completeorders show first then completemodules [image: DeepinScreenshot_select-area_20220402171316.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

How to display models.full_clean() ValidationError in django admin?

2022-02-22 Thread ivory 954
Copy from: https://stackoverflow.com/questions/71231549/how-to-display-models-full-clean-validationerror-in-django-admin Question: https://docs.djangoproject.com/en/4.0/ref/models/instances/#validating-objects from django.core.exceptions import ValidationError try

Re: django-admin-autocomplete-filter

2022-02-09 Thread Kenedi Novriansyah
gt; Need updates from MERN >>> >>> On Wed, 9 Feb 2022, 19:21 Dilja E G, wrote: >>> >>>> How to add django-admin-autocomplete-filter ? in my django filtter? >>>> >>>> -- >>>> You received this message because you are subscribed to the Go

Re: django-admin-autocomplete-filter

2022-02-09 Thread Kenedi Novriansyah
KwKG1/file.html > > On Wed, Feb 9, 2022 at 9:06 PM DUSHYANT SINGH > wrote: > >> Need updates from MERN >> >> On Wed, 9 Feb 2022, 19:21 Dilja E G, wrote: >> >>> How to add django-admin-autocomplete-filter ? in my django filtter? >>> >>

Re: django-admin-autocomplete-filter

2022-02-09 Thread Kenedi Novriansyah
https://www45.zippyshare.com/v/07OKwKG1/file.html On Wed, Feb 9, 2022 at 9:06 PM DUSHYANT SINGH wrote: > Need updates from MERN > > On Wed, 9 Feb 2022, 19:21 Dilja E G, wrote: > >> How to add django-admin-autocomplete-filter ? in my django filtter? >> >> -- >&g

Re: django-admin-autocomplete-filter

2022-02-09 Thread DUSHYANT SINGH
Need updates from MERN On Wed, 9 Feb 2022, 19:21 Dilja E G, wrote: > How to add django-admin-autocomplete-filter ? in my django filtter? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from t

django-admin-autocomplete-filter

2022-02-09 Thread Dilja E G
How to add django-admin-autocomplete-filter ? in my django filtter? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@google

change user creation form shown in Django admin

2022-01-07 Thread Anil Felipe Duggirala
I am using this form successfully on my user facing signup page (I get username, phoneno and password). However I would like to achieve the same within the Django admin (have the 'phoneno' field shown). I have tried to achieve this doing: ## /users/admin.py class CustomUserAdmin(User

Sorting in Django admin site on different locale

2021-12-06 Thread Roland Leners
I am currently learning Python and Django via building a simple Web application. It involves objects with character fields that take values in different languages (French and Spanish) and I face an issue with sorting on those values in the Django administration site. Here are sample sets: Fren

Re: Issue in rendering of Inline forms on Django Admin site

2021-12-01 Thread Gabo LaTo
: >> >> class RelatedModelInlineTabular(admin.TabularInline): >> model = RelatedModel >> show_change_link = False >> fields = ("number", ) >> >> class TestMyModelCreate(admin.ModelAdmin): >> fields = ['text', ] >

Re: Issue in rendering of Inline forms on Django Admin site

2021-12-01 Thread Gabo LaTo
#x27;text', ] > inlines = [RelatedModelInlineTabular] > > admin.site.register(MyModel, TestMyModelCreate) > > > Steps to replicate: > >- Login to django admin website >- open the "add" view for MyModel (i.e. navigate to the list of Models >and click

Issue in rendering of Inline forms on Django Admin site

2021-11-29 Thread 'Andrea Arighi' via Django users
nk = False fields = ("number", ) class TestMyModelCreate(admin.ModelAdmin): fields = ['text', ] inlines = [RelatedModelInlineTabular] admin.site.register(MyModel, TestMyModelCreate) Steps to replicate: - Login to django admin website - open the "add" vie

Re: Django Admin Login

2021-11-09 Thread Aashish Kumar
Just make the path blank of admin.site.url in main urls.py file On Tue, 9 Nov 2021 at 11:38 PM, webmbackslash wrote: > Habdle it in urls.py file. > But are you sure you want all your site viewed in admin mode? > > Il mar 9 nov 2021, 15:21 Abhi Sharma ha scritto: > >> Hello

Re: Django Admin Login

2021-11-09 Thread webmbackslash
Habdle it in urls.py file. But are you sure you want all your site viewed in admin mode? Il mar 9 nov 2021, 15:21 Abhi Sharma ha scritto: > Hello, > We have a Django admin URL like https://abc.com/admin/, it's working fine > however we want to proxy with a domain for admin

Django Admin Login

2021-11-09 Thread Abhi Sharma
Hello, We have a Django admin URL like https://abc.com/admin/, it's working fine however we want to proxy with a domain for admin url like https://abc.com/ We want to remove */admin* from the URL. Regards, Abhishek -- You received this message because you are subscribed to the Google G

Re: Django admin redirects behind nginx proxy subpath

2021-10-30 Thread Karthik Karthik
yaa On Saturday, 23 October 2021 at 04:44:10 UTC-7 268088...@gmail.com wrote: > I don't know but I'm interested in that > > 在2021年10月20日星期三 UTC+8 上午3:37:04 写道: > >> >> I am running a small django app with django admin. >> In fact, I only use django admin t

Re: Django admin redirects behind nginx proxy subpath

2021-10-23 Thread 银色配色
I don't know but I'm interested in that 在2021年10月20日星期三 UTC+8 上午3:37:04 写道: > > I am running a small django app with django admin. > In fact, I only use django admin to edit a few models. > > It works fine in local and behind a simple proxy reverse, but now I have &

Django admin redirects behind nginx proxy subpath

2021-10-19 Thread Rodolphe Gohard
I am running a small django app with django admin. In fact, I only use django admin to edit a few models. It works fine in local and behind a simple proxy reverse, but now I have this kind a rewrite that changes the path: (it's a nginx ingress rewrite rule for Kubernetes) path: /diag

Re: django admin

2021-10-10 Thread David Nugent
Just a general note but *collectstatic* should not be required for Django development in localdev. Django will locate static files using STATICFILES_FINDERS when serving static is enabled (which normally is the case for localdev). It uses the same algorithm to do so as *collectstatic*. If you're

RE: django admin

2021-10-10 Thread Mike Dewhirst
Try manage.py collectstatic--(Unsigned mail from my phone) Original message From: Baraka Nzavi Date: 11/10/21 07:32 (GMT+10:00) To: Django users Subject: django admin hello guys...what leads to the admin interface misbehaving in that the styling does not show -- You

Re: django admin

2021-10-10 Thread Kasper Laudrup
On 10/10/2021 21.31, Baraka Nzavi wrote: hello guys...what leads to the admin interface misbehaving in that the styling does not show Most likely the stylesheets (.css files) are not available to the browser for some reason. Impossible to know what the reason for that might be unless you p

django admin

2021-10-10 Thread Baraka Nzavi
hello guys...what leads to the admin interface misbehaving in that the styling does not show -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubs

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread bnmng
;>> samples? >>> >>> On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com >>> wrote: >>> >>>> Hi, >>>> I'm very new in Django. I'm making a cv, but I don't get select a >

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread Mariangeles Mendoza
27;t the >> samples? >> >> On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com >> wrote: >> >>> Hi, >>> I'm very new in Django. I'm making a cv, but I don't get select a choice >>> through the django-admin

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-21 Thread Mariangeles Mendoza
with a custom widget that isn't the > samples? > > On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com wrote: > >> Hi, >> I'm very new in Django. I'm making a cv, but I don't get select a choice >> through the django-admin we

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-20 Thread bnmng
describing. Maybe a browser issue? Maybe there's something with a custom widget that isn't the samples? On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com wrote: > Hi, > I'm very new in Django. I'm making a cv, but I don't get select a choi

django-admin doesn't display choices and it's not possible to select one

2021-09-13 Thread Mariangeles Mendoza
Hi, I'm very new in Django. I'm making a cv, but I don't get select a choice through the django-admin web. I've searched solutions in the community but I cant't solve it. My code is: *Models.py* """" class Article(models.Model)

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Mike Dewhirst
On 27/08/2021 2:09 am, Nigel Copley wrote: although I think you'd have to override the breadcrumb block in each of the public facing admin templates, it doesn't look to be easily done and making a home setting it's probably overkill Overkill, underkill - looks like no other solution at the mom

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Mike Dewhirst
On 27/08/2021 1:50 am, Cale Roco wrote: haven't tried it but you could potentially just override the "/admin/base.html" template in your templates directory That does change it but only at the top level admin:index page which shows all the apps Doesn't seem to be inherited by child pages.

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Nigel Copley
although I think you'd have to override the breadcrumb block in each of the public facing admin templates, it doesn't look to be easily done and making a home setting it's probably overkill On Thursday, 26 August 2021 at 16:50:11 UTC+1 Nigel Copley wrote: > haven't tried it but you could potent

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Cale Roco
haven't tried it but you could potentially just override the "/admin/base.html" template in your templates directory On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote: > We are using 'Home' in a different, more public, part of the site and > have to adjust that first item in the

Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-23 Thread Mike Dewhirst
We are using 'Home' in a different, more public, part of the site and have to adjust that first item in the Admin breadcrumbs to 'Menu' or 'Main menu' in order to keep the UX masters happy. Some of the Admin is public facing. Looking at the source, I would have to override an awful lot of tem

Re: Display Hierarchical Categories in Django Admin

2021-08-12 Thread 'Rahul Chauhan' via Django users
category Model like this one which is based on *Adjacency List*. >> >> class Category(models.Model): >> name = models.CharField(blank=False, max_length=200) >> slug = models.SlugField(null=False) >> >> parent = models.ForeignKey('self', blank=T

Re: Display Hierarchical Categories in Django Admin

2021-08-12 Thread Sebastian Jung
_delete=models.SET_NULL) > > I want to display the model has hierarchical/nested structure in the > Django admin. There are modules available such as TreeBeard or Django-MPTT > but I dont want to use them. > > Tried everything, but unable to achieve the above. > > Any help

Display Hierarchical Categories in Django Admin

2021-08-11 Thread 'Rahul Chauhan' via Django users
ame='child',on_delete=models.SET_NULL) I want to display the model has hierarchical/nested structure in the Django admin. There are modules available such as TreeBeard or Django-MPTT but I dont want to use them. Tried everything, but unable to achieve the above. Any help in this dire

Re: Please help me to add button functionality in django admin panel for filter list of objects

2021-08-08 Thread MR INDIA
This article can help : https://hakibenita.medium.com/how-to-add-custom-action-buttons-to-django-admin-8d266f5b0d41 On Thursday, 5 August 2021 at 18:31:52 UTC+5:30 arvind@gmail.com wrote: > hey guys i want to add the action on click the list will be filter of > objects > >

Re: Django admin filters + select2 + loading many options asynchronously

2021-08-05 Thread Derek
Alternatively, there is : https://pypi.org/project/django-admin-autocomplete-filter/ (My own issue with that one s that does not necessarily match any custom styling, but that is probably not a problem for most.) On Friday, 6 August 2021 at 07:53:35 UTC+2 Derek wrote: > You mean like ht

Re: Django admin filters + select2 + loading many options asynchronously

2021-08-05 Thread Derek
You mean like https://pypi.org/project/django-autocomplete-light/ ? On Wednesday, 4 August 2021 at 20:45:16 UTC+2 Federico Capoano wrote: > Hi everyone, > > when adding adming filters by foreign key in the admin, sometimes the > possible values are too many to load. > > So I am thinking, why not

Django admin filters + select2 + loading many options asynchronously

2021-08-04 Thread Federico Capoano
Hi everyone, when adding adming filters by foreign key in the admin, sometimes the possible values are too many to load. So I am thinking, why not load values asynchronously and show these with select2? Probably only a certain number of values should be fetched and then while scrolling more va

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Tree Chip Net
= models.ForeignKey(user, on_delete=models.SET_NULL)* *def __str__(self):* *return self.song* now what I want to do at django admin side that the string added in * "String" *model should be saved in Song_Wors_count model and string should be splitted in a single word and frequency

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread DJANGO DEVELOPER
gt; >>>> let suppose I have 2 models: >>>> *class String(models.model):* >>>> *string = models.textarea(null = True, blank = True)* >>>> *user = models.ForeignKey(user, on_delete=models.CASCADE)* >>>> *def __str__(self):* >>>> *

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread DJANGO DEVELOPER
l):* >>> *string = models.textarea(null = True, blank = True)* >>> *user = models.ForeignKey(user, on_delete=models.CASCADE)* >>> *def __str__(self):* >>> *return self.string* >>> >>> and >>> >>> >>

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Sebastian Jung
ete=models.CASCADE)* >> *def __str__(self):* >> *return self.string* >> >> and >> >> >> *class Song_Words_Count(models.model):* >> *song = models.ForeignKey(user, on_delete=models.SET_NULL)* >> *def __str__(self):* >> *

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Tech Cue
t;> * song = models.ForeignKey(user, on_delete=models.SET_NULL)* >> *def __str__(self):* >> *return self.song* >> >> now what I want to do at django admin side that the string added in* >> "String" *model should be saved in Song_Wors

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread 'Peter van der Does' via Django users
*    song = models.ForeignKey(user, on_delete=models.SET_NULL)* > *    def __str__(self):* > *        return self.song* > > now what I want to do at django admin side that the string added > in*"String" *model should be saved in Song_Wors_count model and

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-08 Thread DJANGO DEVELOPER
* > *def __str__(self):* > *return self.string* > > and > > > *class Song_Words_Count(models.model):* > *song = models.ForeignKey(user, on_delete=models.SET_NULL)* > *def __str__(self):* > *return self.song* > > now what I want to

Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-08 Thread DJANGO DEVELOPER
= models.ForeignKey(user, on_delete=models.SET_NULL)* *def __str__(self):* *return self.song* now what I want to do at django admin side that the string added in* "String" *model should be saved in Song_Wors_count model and string should be splitted in a single word and frequency

Re: Django Admin: object history not working

2021-06-23 Thread Christian Ledermann
rom the Django Admin. > Was interested in learning about an objects' change history, but in this > case, the changes were not performed from the Django Admin. > > > On Tuesday, June 22, 2021 at 5:50:10 AM UTC-7 christian...@gmail.com > wrote: > >> I am not sure what you

Re: Django Admin: object history not working

2021-06-22 Thread Ryan Kite
Thanks for the clarification, I didn't realize it only applied to changes administered directly from the Django Admin. Was interested in learning about an objects' change history, but in this case, the changes were not performed from the Django Admin. On Tuesday, June 22, 2021 at

Re: Django Admin: object history not working

2021-06-22 Thread Christian Ledermann
I am not sure what you are asking about. The history works out of the box, but only when you manipulate entries via the django admin. When you change the model instance through your own views, you have to explicitly create the log entry. On Tue, 22 Jun 2021 at 00:48, Ryan Kite wrote: > He

Django Admin: object history not working

2021-06-21 Thread Ryan Kite
Hello, The issue is when clicking the "History" button on an object from the Django admin site, it opens to the template but says "*This object doesn't have a change history. It probably wasn't added via this admin site."* >From reading the docs it appears that

  1   2   3   4   5   6   7   8   9   10   >