gestiojeux/loans/admin.py
Sylvain Gay 474083dd38 Add minimal loans system
Functional loans system for users.
No manager interface yet.

See:
- app "loans"
- a few new views/templates in app "inventory"
2024-05-02 11:13:34 +02:00

6 lines
216 B
Python

from django.contrib import admin
class LoanAdmin(admin.ModelAdmin):
list_display = ("lent_object", "borrow_date", "return_date")
ordering = ("-borrow_date",)
list_filter = ("return_date", "borrow_date")