diff options
Diffstat (limited to 'statuses')
-rw-r--r-- | statuses/migrations/0001_initial.py | 2 | ||||
-rw-r--r-- | statuses/models/status.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/statuses/migrations/0001_initial.py b/statuses/migrations/0001_initial.py index 7b8eced..58a7d29 100644 --- a/statuses/migrations/0001_initial.py +++ b/statuses/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.3 on 2022-11-05 19:43 +# Generated by Django 4.1.3 on 2022-11-05 23:50 import django.db.models.deletion from django.db import migrations, models diff --git a/statuses/models/status.py b/statuses/models/status.py index 2e17a19..ac40806 100644 --- a/statuses/models/status.py +++ b/statuses/models/status.py @@ -1,3 +1,4 @@ +import urlman from django.db import models @@ -33,3 +34,6 @@ class Status(models.Model): text=text, local=True, ) + + class urls(urlman.Urls): + view = "{self.identity.urls.view}{self.id}/" |