Django Model Meta memesan beberapa pemesanan
class Transaction(models.Model):
created_at = models.DateTimeField(
default=timezone.now, null=True, blank=True
)
paid = models.DateTimeField(null=True, blank=True)
class Meta:
ordering = ['-paid', '-created_at']
knavels