Add all models to admin site and tweak some documentation

This commit is contained in:
2023-02-10 23:47:55 +00:00
parent 010aba7f81
commit 1f43a00c7a
2 changed files with 23 additions and 1 deletions

View File

@@ -18,7 +18,8 @@ log = logs.get_logger(__name__)
class AssetGroupList(LoginRequiredMixin, ObjectList):
list_template = "partials/assetgroup-list.html"
model = AssetGroup
page_title = "List of asset groups for restrictions. Linked to accounts."
page_title = "List of asset groups for restrictions. Linked to strategies."
page_subtitle = "Asset groups are collections of asset restrictions."
list_url_name = "assetgroups"
list_url_args = ["type"]
@@ -64,6 +65,7 @@ class AssetRestrictionList(
list_template = "partials/assetrestriction-list.html"
model = AssetRestriction
page_title = "List of asset restrictions. Linked to asset groups."
page_subtitle = "Allows API calls to permit or prohibit trading on defined currency pairs."
list_url_name = "assetrestrictions"
list_url_args = ["type", "group"]