mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	fix migration dependency
and run code style
This commit is contained in:
		@@ -1,19 +1,28 @@
 | 
				
			|||||||
from django.db import migrations, models
 | 
					from django.db import migrations, models
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Migration(migrations.Migration):
 | 
					class Migration(migrations.Migration):
 | 
				
			||||||
    dependencies = [
 | 
					    dependencies = [
 | 
				
			||||||
        ('documents', '1016_auto_20210317_1351'),
 | 
					        ("documents", "1022_paperlesstask"),
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    operations = [
 | 
					    operations = [
 | 
				
			||||||
        migrations.CreateModel(
 | 
					        migrations.CreateModel(
 | 
				
			||||||
            name='Comment',
 | 
					            name="Comment",
 | 
				
			||||||
            fields=[
 | 
					            fields=[
 | 
				
			||||||
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
					                (
 | 
				
			||||||
                ('comment', models.TextField()),
 | 
					                    "id",
 | 
				
			||||||
                ('created', models.DateTimeField(auto_now_add=True)),
 | 
					                    models.AutoField(
 | 
				
			||||||
                ('document_id', models.PositiveIntegerField()),
 | 
					                        auto_created=True,
 | 
				
			||||||
                ('user_id', models.PositiveIntegerField())
 | 
					                        primary_key=True,
 | 
				
			||||||
 | 
					                        serialize=False,
 | 
				
			||||||
 | 
					                        verbose_name="ID",
 | 
				
			||||||
 | 
					                    ),
 | 
				
			||||||
 | 
					                ),
 | 
				
			||||||
 | 
					                ("comment", models.TextField()),
 | 
				
			||||||
 | 
					                ("created", models.DateTimeField(auto_now_add=True)),
 | 
				
			||||||
 | 
					                ("document_id", models.PositiveIntegerField()),
 | 
				
			||||||
 | 
					                ("user_id", models.PositiveIntegerField()),
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
    ] 
 | 
					    ]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user