cmsmanage/rentals/dashboard.py

16 lines
338 B
Python
Raw Normal View History

from typing import Any
from django.urls import reverse
import dashboard
@dashboard.register
class RentalsDashboardFragment(dashboard.DashboardFragment):
name = "Rentals"
template = "dashboard/links_card.dj.html"
@property
def context(self) -> Any:
return {"links": {"Locker Index": reverse("rentals:index")}}