diff --git a/BBProj/BBApp/models.py b/BBProj/BBApp/models.py index 621597e..84687d0 100644 --- a/BBProj/BBApp/models.py +++ b/BBProj/BBApp/models.py @@ -127,4 +127,4 @@ class CustomerService(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name = 'myInquiry', blank=True, null=True) title = models.CharField(max_length=256) content = models.TextField() - created_at = models.DateTimeField() \ No newline at end of file + created_at = models.DateTimeField(auto_now_add=True) \ No newline at end of file diff --git a/BBProj/baromessages/migrations/0001_initial.py b/BBProj/baromessages/migrations/0001_initial.py index b07db2c..ed26234 100644 --- a/BBProj/baromessages/migrations/0001_initial.py +++ b/BBProj/baromessages/migrations/0001_initial.py @@ -1,3 +1,4 @@ + # Generated by Django 4.1 on 2023-03-14 15:38 from django.conf import settings