Filter list with db model
This commit is contained in:
12
project/main/models/cat_breed.py
Normal file
12
project/main/models/cat_breed.py
Normal file
@ -0,0 +1,12 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class CatBreed(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
country = models.CharField(max_length=100)
|
||||
origin = models.CharField(max_length=100)
|
||||
coat = models.CharField(max_length=100)
|
||||
pattern = models.CharField(max_length=100)
|
||||
|
||||
class Meta:
|
||||
db_table = "cat_breeds"
|
||||
Reference in New Issue
Block a user