This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from datetime import datetime | |
from django.core.exceptions import ValidationError | |
from django.utils.translation import gettext_lazy as _ | |
from django.utils.translation import ugettext_lazy as _ | |
# Problema: Como montar um validators onde o valor de entrada da máquina x deva ser sempre maior que o último valor de entrada cadastrado no bd da respectiva maquina? | |
# | |
Ex.: A maquina M1 recebeu o valor 70 e a maquina M2 recebeu 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OperationalError at /admin/core/movmensalista/ | |
no such column: core_movmensalista.data_pagamento | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/admin/core/movmensalista/ | |
Django Version: 3.1.1 | |
Exception Type: OperationalError | |
Exception Value: | |
no such column: core_movmensalista.data_pagamento | |
Exception Location: /home/everson/Documentos/Projetos/Estacionamento_projeto/venv/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py, line 413, in execute | |
Python Executable: /home/everson/Documentos/Projetos/Estacionamento_projeto/venv/bin/python |