16 lines
338 B
Python
16 lines
338 B
Python
|
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")}}
|