From 02bb974a925e29eb0906aa399ddc29a81cd9fb4d Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Sat, 4 Feb 2017 11:18:35 +0100 Subject: [PATCH] update accounting model --- billard/migrations/0004_accounting.py | 3 +-- billard/models.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/billard/migrations/0004_accounting.py b/billard/migrations/0004_accounting.py index 8a71db2..050183c 100644 --- a/billard/migrations/0004_accounting.py +++ b/billard/migrations/0004_accounting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.5 on 2017-02-04 05:48 +# Generated by Django 1.10.5 on 2017-02-04 10:17 from __future__ import unicode_literals from django.db import migrations, models @@ -22,7 +22,6 @@ class Migration(migrations.Migration): ('time_to', models.DateTimeField(blank=True, null=True)), ('prize', models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True)), ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Client')), - ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Location')), ], options={ 'ordering': ['-time_from'], diff --git a/billard/models.py b/billard/models.py index 20ba842..3f8054a 100644 --- a/billard/models.py +++ b/billard/models.py @@ -65,7 +65,6 @@ class Client(models.Model): class Accounting(models.Model): - location = models.ForeignKey(Location) client = models.ForeignKey(Client) desk_no = models.IntegerField() time_from = models.DateTimeField()