rename table_no to desk_no

This commit is contained in:
2017-02-10 19:55:31 +01:00
parent 55cdfc0509
commit 93028156b7
4 changed files with 24 additions and 4 deletions

View File

@@ -16,8 +16,8 @@ class ClientAdmin(admin.ModelAdmin):
@admin.register(LocationData)
class LocationDataAdmin(admin.ModelAdmin):
list_display = ('location_id', 'table_no', 'tst', 'on_off', 'processed', 'error_msg')
fields = ['location_id', 'table_no', 'tst', 'on_off', 'processed', 'error_msg']
list_display = ('location_id', 'desk_no', 'tst', 'on_off', 'processed', 'error_msg')
fields = ['location_id', 'desk_no', 'tst', 'on_off', 'processed', 'error_msg']
@admin.register(Desk)

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 19:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('billard', '0008_auto_20170210_1947'),
]
operations = [
migrations.RenameField(
model_name='locationdata',
old_name='table_no',
new_name='desk_no',
),
]

View File

@@ -10,7 +10,7 @@ from django.db.models.signals import post_save
class LocationData(models.Model):
location_id = models.UUIDField(blank=False, null=False, verbose_name="Standort-ID")
table_no = models.IntegerField(blank=False, null=False, verbose_name="Tischnummer")
desk_no = models.IntegerField(blank=False, null=False, verbose_name="Tischnummer")
tst = models.DateTimeField(blank=False, null=False, verbose_name="Zeitstempel")
on_off = models.BooleanField(blank=False, null=False, verbose_name="Ein/Ausgebucht")
processed = models.BooleanField(default=False, verbose_name="Verarbeitet")