diff options
| author | Bobby <[email protected]> | 2023-05-28 00:41:28 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-28 00:41:28 -0400 |
| commit | 1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c (patch) | |
| tree | 38d17386300c1355418d5bed274f65045c8223ca /announcements | |
| parent | ac5057a31021cf0c72fa9ad02d238fd0184f508e (diff) | |
| download | thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip | |
Post show view count now, Django session uses redis cache
Diffstat (limited to 'announcements')
| -rw-r--r-- | announcements/migrations/0001_initial.py | 2 | ||||
| -rw-r--r-- | announcements/models.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/announcements/migrations/0001_initial.py b/announcements/migrations/0001_initial.py index aca74adf..7d78fdaa 100644 --- a/announcements/migrations/0001_initial.py +++ b/announcements/migrations/0001_initial.py @@ -1,8 +1,8 @@ # Generated by Django 4.0.6 on 2022-10-02 15:22 +import django.db.models.deletion from django.conf import settings from django.db import migrations, models -import django.db.models.deletion class Migration(migrations.Migration): diff --git a/announcements/models.py b/announcements/models.py index 58e434ea..d24efa52 100644 --- a/announcements/models.py +++ b/announcements/models.py @@ -1,6 +1,7 @@ -from django.utils import timezone -from django.db import models from django.conf import settings +from django.db import models +from django.utils import timezone + # Create your models here. class Announcement(models.Model): |
