mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Change default storage_type to unencrypted
This commit is contained in:
		
							
								
								
									
										20
									
								
								src/documents/migrations/0021_auto_20180527_1653.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/documents/migrations/0021_auto_20180527_1653.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
# -*- coding: utf-8 -*-
 | 
			
		||||
# Generated by Django 1.11.13 on 2018-05-27 16:53
 | 
			
		||||
from __future__ import unicode_literals
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('documents', '0020_document_storage_type'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='document',
 | 
			
		||||
            name='storage_type',
 | 
			
		||||
            field=models.CharField(choices=[('unencrypted', 'Unencrypted'), ('gpg', 'Encrypted with GNU Privacy Guard')], default='unencrypted', editable=False, max_length=11),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
@@ -239,7 +239,7 @@ class Document(models.Model):
 | 
			
		||||
    storage_type = models.CharField(
 | 
			
		||||
        max_length=11,
 | 
			
		||||
        choices=STORAGE_TYPES,
 | 
			
		||||
        default=STORAGE_TYPE_GPG,
 | 
			
		||||
        default=STORAGE_TYPE_UNENCRYPTED,
 | 
			
		||||
        editable=False
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user