Hi Team,

I am using django smart select with django version : 1.6.1

django-smart-selects (1.5.4) version

*ERROR : ImportError: No module named apps*

models.py
========
from smart_selects.db_fields import ChainedForeignKey

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

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

class Location(models.Model):
    continent = models.ForeignKey(Continent, on_delete=models.CASCADE)
    country = ChainedForeignKey(
        'Country',
        chained_field="continent",
        chained_model_field="continent",
        show_all=False,
        auto_choose=True
    )
    city = models.CharField(max_length=50)
    street = models.CharField(max_length=100)

settings.py:
=========
added 'smart_selects' to installed apps

Please help me in fixing the above mentioned error. Thanks in advance.

-- 
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/CAOkV-_ibNt1d%3DR22UqX9xGYjQpNk2v3UBj0dN3v-zoRiL3Eo7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to