diff --git a/codelion/django/blogproject/blogapp/__pycache__/admin.cpython-39.pyc b/codelion/django/blogproject/blogapp/__pycache__/admin.cpython-39.pyc index 64a68e3..4a6c3b1 100644 Binary files a/codelion/django/blogproject/blogapp/__pycache__/admin.cpython-39.pyc and b/codelion/django/blogproject/blogapp/__pycache__/admin.cpython-39.pyc differ diff --git a/codelion/django/blogproject/blogapp/__pycache__/models.cpython-39.pyc b/codelion/django/blogproject/blogapp/__pycache__/models.cpython-39.pyc index 71521f8..51c2c95 100644 Binary files a/codelion/django/blogproject/blogapp/__pycache__/models.cpython-39.pyc and b/codelion/django/blogproject/blogapp/__pycache__/models.cpython-39.pyc differ diff --git a/codelion/django/blogproject/blogapp/migrations/0001_initial.py b/codelion/django/blogproject/blogapp/migrations/0001_initial.py index 9b20cad..fae2920 100644 --- a/codelion/django/blogproject/blogapp/migrations/0001_initial.py +++ b/codelion/django/blogproject/blogapp/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.0.3 on 2022-03-29 05:47 +# Generated by Django 4.0.3 on 2022-03-29 05:56 from django.db import migrations, models diff --git a/codelion/django/blogproject/blogapp/migrations/__pycache__/0001_initial.cpython-39.pyc b/codelion/django/blogproject/blogapp/migrations/__pycache__/0001_initial.cpython-39.pyc index fccea51..67459f7 100644 Binary files a/codelion/django/blogproject/blogapp/migrations/__pycache__/0001_initial.cpython-39.pyc and b/codelion/django/blogproject/blogapp/migrations/__pycache__/0001_initial.cpython-39.pyc differ diff --git a/codelion/django/blogproject/blogapp/models.py b/codelion/django/blogproject/blogapp/models.py index 055a354..3c0d21a 100644 --- a/codelion/django/blogproject/blogapp/models.py +++ b/codelion/django/blogproject/blogapp/models.py @@ -5,3 +5,6 @@ class Blog(models.Model): title = models.CharField(max_length=200) body = models.TextField() date = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.title \ No newline at end of file diff --git a/codelion/django/blogproject/db.sqlite3 b/codelion/django/blogproject/db.sqlite3 index 1217e13..52d0994 100644 Binary files a/codelion/django/blogproject/db.sqlite3 and b/codelion/django/blogproject/db.sqlite3 differ