summaryrefslogtreecommitdiffstats
path: root/activities/models
diff options
context:
space:
mode:
authorMichael Manfre2022-12-06 18:55:35 -0500
committerGitHub2022-12-06 16:55:35 -0700
commitdcf2d801b93e195ad27d349427a7c6aaa8845d61 (patch)
tree4ffb6555603aefa1356d248b5a4af51da81ba4b0 /activities/models
parentc87ad8116fbd19107456147b026e1cc214334b40 (diff)
downloadtakahe-dcf2d801b93e195ad27d349427a7c6aaa8845d61.tar.gz
takahe-dcf2d801b93e195ad27d349427a7c6aaa8845d61.tar.bz2
takahe-dcf2d801b93e195ad27d349427a7c6aaa8845d61.zip
'View in admin' link for post popup menu (#134)
Diffstat (limited to 'activities/models')
-rw-r--r--activities/models/post.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/activities/models/post.py b/activities/models/post.py
index 55d2f65..1017694 100644
--- a/activities/models/post.py
+++ b/activities/models/post.py
@@ -219,6 +219,7 @@ class Post(StatorModel):
action_delete = "{view}delete/"
action_edit = "{view}edit/"
action_reply = "/compose/?reply_to={self.id}"
+ admin_edit = "/djadmin/activities/post/{self.id}/change/"
def get_scheme(self, url):
return "https"