Commit a443e895 authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

had to fix typos, It wasn't completely merged

parent 0fd998a7
# app/admin.py
from django.contrib import admin
from .models import Author,Books
from .models import Author,Book
class AuthorAdmin(admin.ModelAdmin):
......@@ -18,4 +18,4 @@ class BookAdmin(admin.ModelAdmin):
# registering the model and the admin is what tells
# Django that admin pages must be generated for the models specified
admin.site.register(Author, AuthorAdmin)
admin.site.register(Books, BookAdmin)
admin.site.register(Book, BookAdmin)
# Generated by Django 3.2 on 2023-03-29 15:47
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookshelf', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='book',
name='year_published',
field=models.DateField(default=datetime.datetime(2023, 3, 29, 23, 47, 44, 378208)),
),
]
# Generated by Django 3.2 on 2023-03-29 02:51
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bookshelf', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, max_length=50)),
('publisher', models.CharField(blank=True, max_length=50)),
('year_published', models.DateField(default=datetime.datetime(2023, 3, 29, 10, 51, 31, 682472))),
('ISBN', models.CharField(default='0000000000000', max_length=50, unique=True)),
('blurb', models.TextField(blank=True)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bookshelf.author')),
],
),
migrations.DeleteModel(
name='Book',
),
]
# Generated by Django 3.2 on 2023-03-29 04:00
# Generated by Django 3.2 on 2023-03-29 15:48
import datetime
from django.db import migrations, models
......@@ -14,6 +14,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='book',
name='year_published',
field=models.DateField(default=datetime.datetime(2023, 3, 29, 12, 0, 26, 639804)),
field=models.DateField(default=datetime.datetime(2023, 3, 29, 23, 48, 10, 184084)),
),
]
# Generated by Django 3.2 on 2023-03-29 15:49
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookshelf', '0003_alter_book_year_published'),
]
operations = [
migrations.AlterField(
model_name='book',
name='year_published',
field=models.DateField(default=datetime.datetime(2023, 3, 29, 23, 49, 14, 345543)),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment