Hi

I am learning Django from last months and want to implement Cascading Drop
Down for Continent and  Country  in Admin GUI.

I dropped same query two times but i could not get exact correct solution.

I tried lot of option like
django-smart-select and many more..

But i could not get updates in drop down.

 Can Any Django Expert solve this issue? Your help would be highly
appreciated.

This is sample Model for  demonstration of the schema
models.py
----------------------------------------------------------


class Continent(models.Model):
    name = models.CharField(max_length=255)

    def __str__(self):
        return self.name


class Country(models.Model):
    continent = models.ForeignKey(Continent,on_delete=models.CASCADE)
    name = models.CharField(max_length=255)

    def __str__(self):
        return self.name

class Location(models.Model):
    continent = models.ForeignKey(Continent,on_delete=models.CASCADE)
    country = models.ForeignKey(Country,on_delete=models.CASCADE)
    city = models.CharField(max_length=50)
    street = models.CharField(max_length=100)

    def __str__(self):
        return self.city




-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in <bsshe...@sggs.ac.in> *
*  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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAECSbOtoje0sdMsoeQvCO-mq-h-AQVOKtnYA3wFnLAE-tPhXGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to