from django.db import models class PlannedExpense(models.Model): year = models.PositiveIntegerField() month = models.PositiveSmallIntegerField() concept = models.CharField(max_length=255) amount = models.DecimalField(max_digits=10, decimal_places=2) class Meta: ordering = ["year", "month", "concept"] def __str__(self): return f"{self.concept} - {self.amount} ({self.month}/{self.year})"