From e44a321ec53bc84b5986ac0371b4122201fa3a5a Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 17:51:54 -0600 Subject: Get Actor fetching and parsing working --- statuses/migrations/0001_initial.py | 2 +- statuses/models/status.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'statuses') 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}/" -- cgit v1.2.3