Created
November 3, 2020 20:05
-
-
Save egitimplus/542a0a29f795f8ac261220d34f77ea99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CarModel(models.Model): | |
name = models.CharField(max_length=255) | |
fueltype = models.ManyToManyField(FuelType, related_name='models') | |
def __str__(self): | |
return self.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment