I made some model classes with pets types: Parrot, Rabbit, Cat, Dog and i need make model
Shop, where one field will be related for few of this models. This field will show what sells in shop.
Can i make relation beetween one model object to few model classes?
If i can’t, how i need change my scheme?
ex:
1 Shop1 [Parrot, Rabbit]
2 Shop2 [Cat, Dog, Rabbit]
If I understand your question correctly, you have created model classes representing different types of pets, and you want to associate individual shops with a number of those classes.
I’m assuming your pet model definitions look something like this:
You could do this using
contenttypes: