Filter list with db model

This commit is contained in:
Eden Kirin
2024-05-14 22:34:21 +02:00
parent 1456ba8538
commit 4c7b18d07b
10 changed files with 193 additions and 114 deletions

View File

@ -0,0 +1 @@
from .cat_breed import CatBreed

View 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"