frequentaddress.py 631 B

123456789101112
  1. from django.db import models
  2. from SharixAdmin.models import SharixUser
  3. from tickets.models import Task
  4. class Frequentaddress(models.Model):
  5. user = models.ForeignKey(SharixUser, on_delete=models.DO_NOTHING, help_text="пользователь, которому соответствует роль клиента")
  6. address = models.CharField(max_length=150, help_text="Адрес")
  7. description = models.CharField(max_length=150, help_text="Описание")
  8. class Meta:
  9. db_table = "frequentaddress"
  10. verbose_name = "Частые адреса"
  11. verbose_name_plural = "Частые адреса"