Debian Codegraph @

tests/i18n/models.py

raw
1 from datetime import datetime
2
3 from django.db import models
4 from django.utils.translation import gettext_lazy as _
5
6
7 class TestModel(models.Model):
8 text = models.CharField(max_length=10, default=_("Anything"))
9
10
11 class Company(models.Model):
12 name = models.CharField(max_length=50)
13 date_added = models.DateTimeField(default=datetime(1799, 1, 31, 23, 59, 59, 0))
14 cents_paid = models.DecimalField(max_digits=4, decimal_places=2)
15 products_delivered = models.IntegerField()
16
17 class Meta:
18 verbose_name = _("Company")