474083dd38
Functional loans system for users. No manager interface yet. See: - app "loans" - a few new views/templates in app "inventory"
23 lines
817 B
Python
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',),
|
|
),
|
|
]
|