mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Update requirements (#3228)
* Remove stat context variables
* Revert "Remove stat context variables"
This reverts commit 0989c308d0.
* remove old backport
* move requirements
* move isort
* move migrations-tests
* add pip-tools as req and add hook
* Use hashes and also run when txt files are added
* Update to hashes in requirements
* update requirements install path
* remove allauth-2fa for a test
* install dev-requirements
* re-enable allauth
* remove hashes from pre normal setup
* Remove version bindings if they are the laest
* move depencies to upper bound
* fix django-money
* remove windows specific requirements
* also install dependencies
* update markdownify
* remove django-admin-shell
* remove unneeded packages
* add docs
* remove pins and fix pre-commit pipeline
* pin django-money
* really remove admin shell
* return default behaviour for money serializer
* pip fix
* update filter name
* set decimal for output
* add migrations
* pin coveralls
* update requirements
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
			
			
This commit is contained in:
		| @@ -46,7 +46,7 @@ class CompanyList(ListCreateAPI): | ||||
|         filters.OrderingFilter, | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|     filterset_fields = [ | ||||
|         'is_customer', | ||||
|         'is_manufacturer', | ||||
|         'is_supplier', | ||||
| @@ -169,7 +169,7 @@ class ManufacturerPartAttachmentList(AttachmentMixin, ListCreateDestroyAPIView): | ||||
|         DjangoFilterBackend, | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|     filterset_fields = [ | ||||
|         'manufacturer_part', | ||||
|     ] | ||||
|  | ||||
| @@ -233,7 +233,7 @@ class ManufacturerPartParameterList(ListCreateDestroyAPIView): | ||||
|         filters.OrderingFilter, | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|     filterset_fields = [ | ||||
|         'name', | ||||
|         'value', | ||||
|         'units', | ||||
| @@ -333,7 +333,7 @@ class SupplierPartList(ListCreateDestroyAPIView): | ||||
|         filters.OrderingFilter, | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|     filterset_fields = [ | ||||
|     ] | ||||
|  | ||||
|     search_fields = [ | ||||
| @@ -377,7 +377,7 @@ class SupplierPriceBreakList(ListCreateAPI): | ||||
|         DjangoFilterBackend, | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|     filterset_fields = [ | ||||
|         'part', | ||||
|     ] | ||||
|  | ||||
|   | ||||
							
								
								
									
										20
									
								
								InvenTree/company/migrations/0046_alter_company_image.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								InvenTree/company/migrations/0046_alter_company_image.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # Generated by Django 3.2.13 on 2022-06-27 23:08 | ||||
|  | ||||
| import company.models | ||||
| from django.db import migrations | ||||
| import stdimage.models | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('company', '0045_alter_company_notes'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name='company', | ||||
|             name='image', | ||||
|             field=stdimage.models.StdImageField(blank=True, force_min_size=False, null=True, upload_to=company.models.rename_company_image, variations={'preview': (256, 256), 'thumbnail': (128, 128)}, verbose_name='Image'), | ||||
|         ), | ||||
|     ] | ||||
		Reference in New Issue
	
	Block a user