mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +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:
		@@ -135,7 +135,7 @@ class CategoryList(ListCreateAPI):
 | 
			
		||||
        filters.OrderingFilter,
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    ordering_fields = [
 | 
			
		||||
@@ -281,7 +281,7 @@ class PartSalePriceList(ListCreateAPI):
 | 
			
		||||
        DjangoFilterBackend
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'part',
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
@@ -304,7 +304,7 @@ class PartInternalPriceList(ListCreateAPI):
 | 
			
		||||
        DjangoFilterBackend
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'part',
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
@@ -319,7 +319,7 @@ class PartAttachmentList(AttachmentMixin, ListCreateDestroyAPIView):
 | 
			
		||||
        DjangoFilterBackend,
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'part',
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
@@ -1412,7 +1412,7 @@ class PartParameterTemplateList(ListCreateAPI):
 | 
			
		||||
        filters.SearchFilter,
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'name',
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
@@ -1477,7 +1477,7 @@ class PartParameterList(ListCreateAPI):
 | 
			
		||||
        DjangoFilterBackend
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'part',
 | 
			
		||||
        'template',
 | 
			
		||||
    ]
 | 
			
		||||
@@ -1758,7 +1758,7 @@ class BomList(ListCreateDestroyAPIView):
 | 
			
		||||
        filters.OrderingFilter,
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -1857,7 +1857,7 @@ class BomItemSubstituteList(ListCreateAPI):
 | 
			
		||||
        filters.OrderingFilter,
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filter_fields = [
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'part',
 | 
			
		||||
        'bom_item',
 | 
			
		||||
    ]
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										20
									
								
								InvenTree/part/migrations/0080_alter_part_image.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								InvenTree/part/migrations/0080_alter_part_image.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
# Generated by Django 3.2.13 on 2022-06-27 23:08
 | 
			
		||||
 | 
			
		||||
from django.db import migrations
 | 
			
		||||
import part.models
 | 
			
		||||
import stdimage.models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('part', '0079_alter_part_notes'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='part',
 | 
			
		||||
            name='image',
 | 
			
		||||
            field=stdimage.models.StdImageField(blank=True, force_min_size=False, null=True, upload_to=part.models.rename_part_image, variations={'preview': (256, 256), 'thumbnail': (128, 128)}, verbose_name='Image'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Reference in New Issue
	
	Block a user