mpeltriaux
5de3f4c24e
* adds restorable delete functionality to Team model * refactors minor code model parts by introducing DeletableObjectMixin * only non-deleted Teams can be chosen for sharing * deleted Teams can be restored using the proper function on the backend admin * deleted Teams do not provide * adds migration
20 lines
516 B
Python
20 lines
516 B
Python
# Generated by Django 3.1.3 on 2022-05-30 12:42
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('user', '0004_auto_20220530_1105'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='team',
|
|
name='deleted',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='user.useractionlogentry'),
|
|
),
|
|
]
|