diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-09-26 19:36:27 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-09-26 19:36:27 +0200 |
commit | fce95cb32394b449bd6a17e766daf0cc6442db49 (patch) | |
tree | 5011464801d61b57017768ecbda123a900a123c2 /client/migrations | |
parent | switch tab on the profile based on missing fields (diff) | |
download | scout-subs-fce95cb32394b449bd6a17e766daf0cc6442db49.tar.gz scout-subs-fce95cb32394b449bd6a17e766daf0cc6442db49.zip |
create model to hide doctype from specific group
Diffstat (limited to 'client/migrations')
-rw-r--r-- | client/migrations/0015_hidegroup.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/client/migrations/0015_hidegroup.py b/client/migrations/0015_hidegroup.py new file mode 100644 index 0000000..5e054c2 --- /dev/null +++ b/client/migrations/0015_hidegroup.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.9 on 2022-09-26 17:20 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('auth', '0012_alter_user_first_name_max_length'), + ('client', '0014_auto_20220111_1503'), + ] + + operations = [ + migrations.CreateModel( + name='HideGroup', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('doc_type', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='client.documenttype')), + ('group', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='auth.group')), + ], + ), + ] |