models.py 202 B

1234567
  1. from django.db import models
  2. class Book(models.Model):
  3. title = models.CharField(max_length=50)
  4. author = models.CharField(max_length=50)
  5. pages = models.IntegerField(db_column='page_count')