Django-NotesApp/project/notes/migrations/0002_note_date_created.py

20 lines
463 B
Python
Raw Permalink Normal View History

2023-02-24 00:13:44 +08:00
# Generated by Django 4.1.7 on 2023-02-23 13:46
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('notes', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='note',
name='date_created',
field=models.DateTimeField(default=django.utils.timezone.now, editable=False),
),
]