From fce95cb32394b449bd6a17e766daf0cc6442db49 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Mon, 26 Sep 2022 19:36:27 +0200 Subject: create model to hide doctype from specific group --- client/migrations/0015_hidegroup.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 client/migrations/0015_hidegroup.py (limited to 'client/migrations') 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')), + ], + ), + ] -- cgit v1.2.1