Implement permissions on news tags
authorMagnus Hagander <magnus@hagander.net>
Sat, 4 Jul 2020 15:58:28 +0000 (17:58 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 15 Jul 2020 16:39:55 +0000 (18:39 +0200)
commit01986c82a4858e93ed931eeceb95ec9469b0ef4f
treeca4d8d688090e3ca8ae7073dff0d86641f0a332e
parent4f1bf70ea09c41444c88c4ae75173503180a3fd2
Implement permissions on news tags

This makes it possible to limit which organisations can use specific
tags in news, and verify those as news is submitted. Administrators can,
as always, override.

In passing also add a sortkey field to newstags to make them, well,
sortable and include urlname in the json output.
pgweb/news/admin.py
pgweb/news/forms.py
pgweb/news/migrations/0004_tag_permissions.py [new file with mode: 0644]
pgweb/news/models.py
pgweb/news/views.py