loading...

SOLVED:Connecting two Models to create a dropdown

highcenburg profile image Vicente G. Reyes 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

pic
Editor guide