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 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
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
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
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.")
>
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
šš»
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
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
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
9 matches
Mail list logo