This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
facturio/subjects/models.py

48 lines
832 B
Python

from django.db import models
from django.utils.translation import gettext_lazy as _
class Subject(models.Model):
id = models.CharField(
_("CIN"),
max_length=8,
primary_key=True
)
name = models.CharField(
_("Name"),
max_length=128
)
vat_id = models.CharField(
_("VAT ID"),
max_length=12,
null=True,
blank=True
)
street = models.CharField(
_("Street"),
max_length=64,
)
zip_code = models.CharField(
_("Zip Code"),
max_length=6,
)
city = models.CharField(
_("City"),
max_length=64,
)
city_part = models.CharField(
_("City part"),
max_length=64,
null=True,
blank=True
)
def __str__(self):
return self.name