Skip to content

Commit 57d7957

Browse files
author
App Generator
committed
App - Added new model
1 parent 7274947 commit 57d7957

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
from django.db import models
22

33
# Create your models here.
4+
5+
class Book(models.Model): # <- NEW
6+
title = models.CharField(max_length=100) # <- NEW
7+
author = models.CharField(max_length=100) # <- NEW
8+
publication_date = models.DateField() # <- NEW

0 commit comments

Comments
 (0)