DEV Community

loading...

SOLVED:Connecting two Models to create a dropdown

Vicente G. Reyes
Building Indiependent.to | ICVN Tech Studio | Musician | https://t.co/IR2ZEbjzm5 | https://digest.icvn.tech
Updated on ・1 min read

Connecting two Models to create a dropdown

0

I want to know how I can connect 2 models to create a dropdown which is dependent on each other.

As of writing, these are my models for the videos:

class AMLVideo(models.Model):

    LANGUAGE = (
        ('LAN', 'Language'),
        ('FR', 'French'),
        ('EN', 'English'),
        ('HIN', 'Hindi'),
        ('SPA', 'Spanish'),
        ('GER', 'German'),
    )

    LEVEL =

Discussion (0)