mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	create migration for original filename
This commit is contained in:
		 Gwyn Hannay
					Gwyn Hannay
				
			
				
					committed by
					
						 Trenton Holmes
						Trenton Holmes
					
				
			
			
				
	
			
			
			 Trenton Holmes
						Trenton Holmes
					
				
			
						parent
						
							3fcbd8f3ac
						
					
				
				
					commit
					4194b248b9
				
			
							
								
								
									
										18
									
								
								src/documents/migrations/1023_document_original_filename.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								src/documents/migrations/1023_document_original_filename.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| # Generated by Django 4.0.6 on 2022-07-25 06:34 | ||||
|  | ||||
| from django.db import migrations, models | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('documents', '1022_paperlesstask'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AddField( | ||||
|             model_name='document', | ||||
|             name='original_filename', | ||||
|             field=models.CharField(default=None, editable=False, help_text='The original name of the file when it was uploaded', max_length=1024, null=True, verbose_name='original filename'), | ||||
|         ), | ||||
|     ] | ||||
| @@ -214,7 +214,7 @@ class Document(models.Model): | ||||
|         help_text=_("Current archive filename in storage"), | ||||
|     ) | ||||
|  | ||||
|     original_filename = models.FilePathField( | ||||
|     original_filename = models.CharField( | ||||
|         _("original filename"), | ||||
|         max_length=1024, | ||||
|         editable=False, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user