rename_field

This commit is contained in:
za_litvu 2024-11-26 14:52:22 +07:00
parent 55a749c0ae
commit 52f24c14ee
2 changed files with 7 additions and 1 deletions

View File

@ -46,3 +46,9 @@ repos:
rev: v8.18.4
hooks:
- id: gitleaks
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.22.1" # replace with latest tag on GitHub
hooks:
- id: django-upgrade
args: [--target-version, "4.2"] # Replace with Django version

View File

@ -7,7 +7,7 @@ class ScalesControl(models.Model):
db_column='Values', decimal_places=6, max_digits=50, blank=True, null=True
)
time = models.DateTimeField(db_column='Date', blank=True, null=True)
check = models.BooleanField(db_column='Check', default=False)
is_checked = models.BooleanField(db_column='Check', default=False)
class Meta:
verbose_name = 'Показание весов'