gestiojeux/inventory/migrations/0003_gameloan.py
Sylvain Gay 474083dd38 Add minimal loans system
Functional loans system for users.
No manager interface yet.

See:
- app "loans"
- a few new views/templates in app "inventory"
2024-05-02 11:13:34 +02:00

23 lines
817 B
Python

# Generated by Django 4.2.8 on 2024-04-30 15:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('loans', '0002_abstractloan_delete_loan'),
('inventory', '0002_duration_range'),
]
operations = [
migrations.CreateModel(
name='GameLoan',
fields=[
('abstractloan_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='loans.abstractloan')),
('lent_object', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventory.game', verbose_name='jeu emprunté')),
],
bases=('loans.abstractloan',),
),
]