- PlannedExpense model: year, month, concept, amount - CRUD via LiveView in Year page (add form + delete) - Tables grouped by month with totals - Variable expenses line in Year charts includes planned expenses - Month page shows read-only planned expenses table for the month - Month end calculations include planned expenses in totals
14 lines
276 B
Python
14 lines
276 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class YearlyConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "app.yearly"
|
|
verbose_name = "Yearly"
|
|
|
|
def ready(self):
|
|
try:
|
|
import app.yearly.liveview_handlers # noqa: F401
|
|
except ImportError:
|
|
pass
|