<reponame>DimaDK02/tripman
from django.db import models


class Client(models.Model):
    name = models.CharField(max_length=50, unique=True, verbose_name='Имя')
    discount = models.IntegerField(default=0, verbose_name='Скидка (%)')
    total_saved = models.IntegerField(default=0,
                                      verbose_name='Всего сэкономлено (руб)')

    class Meta:
        verbose_name = 'клиент'
        verbose_name_plural = 'клиенты'

    def __str__(self):
        return self.name

from django.db import models


class Client(models.Model):
    name = models.CharField(max_length=50, unique=True, verbose_name='Имя')
    discount = models.IntegerField(default=0, verbose_name='Скидка (%)')
    total_saved = models.IntegerField(default=0,
                                      verbose_name='Всего сэкономлено (руб)')

    class Meta:
        verbose_name = 'клиент'
        verbose_name_plural = 'клиенты'

    def __str__(self):
        return self.name