DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on • Edited on

SOLVED: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 =

Top comments (0)