diff --git a/billard/models.py b/billard/models.py index 0a5f197..952070e 100644 --- a/billard/models.py +++ b/billard/models.py @@ -53,6 +53,7 @@ class Location(models.Model): class Client(models.Model): uuid = models.UUIDField(unique=True, default=uuid.uuid4, verbose_name="Identifier") location = models.ForeignKey(Location, verbose_name="Standort") + report_user = models.ForeignKey(User, verbose_name="Reporting Benutzer", related_name='reporting_clients') def __str__(self): return '{}, {}'.format(self.location.name, self.uuid) @@ -156,4 +157,4 @@ def process_location_data(): ld.processed = True ld.error_msg = 'No existing accountings found. Stopp processing! {}, {}'.format(ld.client_id, ld.desk_no) ld.save() - log.error(ld.error_msg) + log.error(ld.error_msg) \ No newline at end of file diff --git a/billard/templates/billard/index_ajax.html b/billard/templates/billard/index_ajax.html index 10d7261..bd0d345 100644 --- a/billard/templates/billard/index_ajax.html +++ b/billard/templates/billard/index_ajax.html @@ -7,4 +7,24 @@