Removed the unnecessary context_object_name setting from AccountListView in the accounting application.

This commit is contained in:
依瑪貓 2020-08-08 16:12:18 +08:00
parent f29e939de3
commit cbd32bf66f

View File

@ -1038,7 +1038,6 @@ def txn_sort(request, date):
class AccountListView(ListView): class AccountListView(ListView):
"""The view to list the accounts.""" """The view to list the accounts."""
queryset = Account.objects.order_by("code") queryset = Account.objects.order_by("code")
context_object_name = "account_list"
@method_decorator(require_GET, name="dispatch") @method_decorator(require_GET, name="dispatch")