Hi

https://stackoverflow.com/questions/27440861/django-model-multiplechoice

Use this link in models and create css in the frontend

On Thu, 9 May 2019, 18:09 Maurice Aney, <[email protected]> wrote:

> hi guys i think that it will be great to create a slak chanel
>
> Le jeu. 9 mai 2019 à 08:03, Balaji Shetty <[email protected]> a
> écrit :
>
>>
>> HI
>>
>> *How can I add cascading drop down for Continent and Country in Django
>> Admin Panel.*
>>
>> Here I add Continent and Country.
>>
>> When i change Continent, Country should be changed automatically.
>>
>> How can i achieve this.
>>
>> Consider my model.py
>>
>>
>> class Continent(models.Model):
>>
>>     name = models.CharField(max_length=255)
>>
>>
>>
>> class Country(models.Model):
>>
>>     continent = models.ForeignKey(Continent)
>>
>>     name = models.CharField(max_length=255)
>>
>>
>>
>> class Location(models.Model):
>>
>>     continent = models.ForeignKey(Continent)
>>
>>     country = models.ForeignKey(Country)
>>
>>     city = models.CharField(max_length=50)
>>
>>     street = models.CharField(max_length=100
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India *
>> *Official: [email protected] <[email protected]> *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOtZ580o4Jv-zR0FiRhy6pdacJwo74zpP9xsd0P4YoxBXw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOtZ580o4Jv-zR0FiRhy6pdacJwo74zpP9xsd0P4YoxBXw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAONuxAMg%3Dm42x7qWSTLLAg-Wwe%3DEUooG9KJarnsAMQ5eefRa%2BA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAONuxAMg%3Dm42x7qWSTLLAg-Wwe%3DEUooG9KJarnsAMQ5eefRa%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BkSnu7tGN6M1i0e6OALbZL%3DG%3DtQ-eDUBx_Sks8AXcwo_NgvMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to