create views comandas

This commit is contained in:
2024-12-12 10:47:36 -03:00
parent ae5d47fa7c
commit 2f84ca97c3
20 changed files with 158 additions and 10 deletions

View File

@@ -9,5 +9,8 @@ class Mesa(models.Model):
location = models.CharField(max_length=255, null=True, blank=True)
active = models.BooleanField(default=False)
def __str__(self):
return self.name
# Foreign Key to Comandas model (assuming it exists)
# comanda = models.ForeignKey('Comandas', on_delete=models.DO_NOTHING, db_column='id_mesa')