update requirements

This commit is contained in:
2017-04-26 10:06:25 +02:00
parent c7efbffc8f
commit 52d515b05e
3 changed files with 24 additions and 3 deletions

View File

@@ -2,8 +2,6 @@ import uuid
import logging
from django.db import models
from django.contrib.auth.models import User
from datetime import datetime, timezone
from billard import utils
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
@@ -70,7 +68,6 @@ class Desk(models.Model):
prize_hh = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True,
verbose_name="Preis Happy Hour")
def __str__(self):
return '{}, {}'.format(self.client.uuid, self.name)
@@ -88,6 +85,7 @@ class Accounting(models.Model):
reporter_uuid = models.UUIDField(blank=True, null=True, verbose_name='Reporter UUID')
prize_normal = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True, verbose_name="Preis Normalzeit")
prize_hh = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True, verbose_name="Preis Happy Hour")
account_user = models.ManyToManyField(User, related_name='accountings', verbose_name="Abr. Benutzer")
def __str__(self):
return '{}: {} -> {}, {}, {}'.format(self.desk, self.time_from, self.time_to, self.prize, self.billed)