Dear carlos Thank You very much. On Thu, May 16, 2019 at 8:16 PM carlos <[email protected]> wrote:
> try this app > https://django-autocomplete-light.readthedocs.io/en/master/ > > On Thu, May 16, 2019 at 5:59 AM Balaji Shetty <[email protected]> > wrote: > >> >> Hi >> >> Can anyone please provide me the resource for implementation of Cascading >> Dependent Drop Down List in Django Admin GUI. >> >> I do now want to write any code and use existing Admin GUI only. I tried >> many select2 but could not get any success. >> >> Here is my sample code.... >> >> *I followed the instructions and I successfully installed >> django-admin-select2.* >> *URL: https://github.com/mgd020/django-admin-select2 >> <https://github.com/mgd020/django-admin-select2>* >> >> >> *But i do not get Cascading Drop down updates for country and city.I get >> all city under all countries.* >> >> *Here is my Code* >> >> * I have also attached Project Zip File.* >> *Project are working and we can add Country,City and Map Model data.* >> >> >> models.py >> >> >> >> *from django.db import models* >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *class Country(models.Model): name = >> models.CharField(max_length=255) def __str__(self): return >> self.name <http://self.name>class City(models.Model): name = >> models.CharField(max_length=255) country = models.ForeignKey('Country', >> related_name="cities",on_delete=models.CASCADE) def >> __str__(self): return self.name <http://self.name>class >> map1(models.Model): name = models.CharField(max_length=255) >> continent = models.ForeignKey(Country,on_delete=models.CASCADE) country >> = models.ForeignKey(City,on_delete=models.CASCADE) def >> __str__(self): return self.name <http://self.name>* >> *------------------------------------------------------* >> >> admin.py >> >> >> >> >> >> >> >> >> *from django.contrib import adminfrom .models import >> Country,City,map1admin.site.register(Country)admin.site.register(City)admin.site.register(map1)* >> ----------------------------------------------------------------------- >> >> setting.py >> >> >> *INSTALLED_APPS = [* >> >> >> >> >> >> >> >> >> >> >> * 'django_admin_select2', # Necessary Package >> 'django.contrib.admin', 'django.contrib.auth', >> 'django.contrib.contenttypes', 'django.contrib.sessions', >> 'django.contrib.messages', 'django.contrib.staticfiles', 'newapp', # >> App Name]* >> >> *I downloaded PAckage * >> * git clone https://github.com/applegrew/django-select2.git >> <https://github.com/applegrew/django-select2.git>* >> >> *from https://github.com/applegrew/django-select2 >> <https://github.com/applegrew/django-select2>* >> >> >> -- >> >> >> *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/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > att. > Carlos Rocha > > -- > 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/CAM-7rO3_w8sTXxjAz0C0CoTvd%3Dnhqa%3Dbz8Q1ofQtFJrBF2Trbg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAM-7rO3_w8sTXxjAz0C0CoTvd%3Dnhqa%3Dbz8Q1ofQtFJrBF2Trbg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *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/CAECSbOuffrD6NE9fHvDxPZ1_uyja3r7b%2BqQLE8wW3TJTWVaoMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

