how to show liste filtre admin django ManyToOne

2022-10-24 Thread AMINE AZIZ
how to show liste filtre admin django ManyToOne in this case : in models.py --- class Personne(models.Model): name= models.CharField(max_length=50,blank=False) def __str__(self): return self.name class Project(models.Model): title= models.CharField(max_length=50,blank=False) note= m

how to show liste filtre admin django ManyToOne Please

2022-10-24 Thread AMINE AZIZ
how to show liste filtre admin django ManyToOne in this case : [image: Sans titre 9.jpg] How can i filtre in Project by tasks and specialy by Personne liste dropdown of personne and show me liste of projects ? best ragards -- You received this message because you are subscribed to the G

How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
Hi You need to use some JQUERY code You need this in admin or frontend ? -- 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...@googlegroup

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
You 'll use JQUERY normal as the same in html You need every html id (so you cab add on change) JQUERY on change select Show hidden popup / or show hidden input Share your code. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
length=1024) > email = models.EmailField("Authorized - Email", max_length=254) > phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$', message="Phone > number must be entered in the format: '+9'. Up to 15 digits > allowed.") >

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
I will share with you my iwn code used in admin , but it still the same as the front end withe jQuery i can show input or hide it , so you will do the same with popup , by default it will be display none, and with Jquery you can show it if user change value to yes dropdown (select) you will u

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-10 Thread AMINE AZIZ
šŸ‘šŸ» Shre your code, so it will help others. And if you can, change to resoulved, so it will be marked in Google search Best regards -- 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

Problem to see file or image uploaded in admin django

2020-08-24 Thread AMINE AZIZ
Problem to see file or image uploaded in admin django see image below my setting.py import os from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.p

Re: Problem to see file or image uploaded in admin django

2020-08-24 Thread AMINE AZIZ
i found solution just i need to change media/ to /media/ :) Le lun. 24 aoƻt 2020 Ơ 15:40, Ogunsanya Opeyemi a Ʃcrit : > Hi, do you have pillow installed in your library. and look for the image > in that path in your local directory. > > > On Mon, Aug 24, 2020 at 12:59 PM AM