show accounting data from table
This commit is contained in:
		
							
								
								
									
										28
									
								
								billard/migrations/0004_accounting.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								billard/migrations/0004_accounting.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
# -*- coding: utf-8 -*-
 | 
			
		||||
# Generated by Django 1.10.5 on 2017-02-01 19:08
 | 
			
		||||
from __future__ import unicode_literals
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
import django.db.models.deletion
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('billard', '0003_client'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.CreateModel(
 | 
			
		||||
            name='Accounting',
 | 
			
		||||
            fields=[
 | 
			
		||||
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
			
		||||
                ('desk_no', models.IntegerField()),
 | 
			
		||||
                ('time_from', models.DateTimeField()),
 | 
			
		||||
                ('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')),
 | 
			
		||||
            ],
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Reference in New Issue
	
	Block a user