Add fake data

This commit is contained in:
Andros Fenollosa
2021-07-14 16:46:34 +02:00
parent d04d21ae5b
commit aeb5199bdc
10 changed files with 658 additions and 24 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 3.2.5 on 2021-07-14 14:16
# Generated by Django 3.2.5 on 2021-07-14 14:37
from django.db import migrations, models
@ -16,7 +16,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('genre', models.CharField(max_length=255)),
('country', models.CharField(max_length=255)),
('year', models.CharField(max_length=4)),
('author', models.CharField(max_length=255)),
('created_at', models.DateTimeField(auto_now_add=True)),

View File

@ -5,7 +5,7 @@ from django.db import models
class Book(models.Model):
title = models.CharField(max_length=255)
genre = models.CharField(max_length=255)
country = models.CharField(max_length=255)
year = models.CharField(max_length=4)
author = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add=True)