mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
9e77b9fc56
* adds new field 'parameter type' to PartParameterTemplate model * Move part parameter settings onto their own page * Add "choices" and "regex" template types * Adds validation for PartParameter based on template type * javascript cleanup * Fix for serializers.py * Add unit testing for parameter validation * Add filters * Rename "type" field to "param_type" - Should have seen that one coming * Coerce 'boolean' value to True/False * table update * js linting * Add requirement for "pint" package * Add validator for physical unit types - Revert a previous migration which adds "parameter type" and "validator" fields - These will get implemented later, too much scope creep for this PR - Add unit test for validation of "units" field * Update PartParameter model - Add data_numeric field (will be used later) - Add MinLengthValidator to data field * Run validation for part parameter data - Ensure it can be converted to internal units * Update admin interface to display partparameter values inline for a part * Adds validation of part parameter data value - Also converts to base units, and stores as "numeric" value - Display "numeric" value in tables - Create new file conversion.py for data conversion * Update unit tests and fix some bugs * Update docstring * Add units to parameter columns in parameteric part table * Allow part list to be ordered by a particular parameter value - Annotate queryset with new "order_by_parameter" method - Skeleton method for future work * Bump API version * Adds unit testing for sorting parts by parameter value * Update historical data migrations - Turns out RunPython.noop is a thing? * Cache the unit registry - Creating the unit registry takes a significant amount of time - Construct when first called, and then cache for subsequent hits - Massive improvement in performance * Throw error on empty values when converting between units * Data migration for converting existing part parameter values * Handle more error cases * Show parameteric table on top-level part page too * Unit test for data migration * Update credits in docs * Improved error checking * WIP docs updates * Fix parameteric table filtering * remove zoom property * Fix for import path * Update parameter docs * Run background task to rebuild parameters when template changes * Make "data_numeric" field nullable - Defaulting to zero is not appropriate, as the actual value may be zero - Sorting still seems to work just fine * Fixes for unit test * More unit test fixes * Further fixes for unit tests --------- Co-authored-by: Matthias Mair <code@mjmair.com>
48 lines
3.3 KiB
Plaintext
48 lines
3.3 KiB
Plaintext
# Please keep this list sorted - if you pin a version provide a reason
|
|
Django>=3.2.14,<4 # Django package
|
|
coreapi # API documentation for djangorestframework
|
|
cryptography>=40.0.0,!=40.0.2 # Core cryptographic functionality
|
|
django-allauth # SSO for external providers via OpenID
|
|
django-allauth-2fa # MFA / 2FA
|
|
django-cleanup # Automated deletion of old / unused uploaded files
|
|
django-cors-headers # CORS headers extension for DRF
|
|
django-crispy-forms<2.0 # Form helpers # FIXED 2023-02-18 due to required updates in the new version
|
|
django-dbbackup # Backup / restore of database and media files
|
|
django-error-report # Error report viewer for the admin interface
|
|
django-filter # Extended filtering options
|
|
django-formtools # Form wizard tools
|
|
django-ical # iCal export for calendar views
|
|
django-import-export==2.5.0 # Data import / export for admin interface
|
|
django-maintenance-mode # Shut down application while reloading etc.
|
|
django-markdownify # Markdown rendering
|
|
django-money<3.0.0 # Django app for currency management # FIXED 2022-06-26 to make sure py-moneyed is not conflicting
|
|
django-mptt==0.11.0 # Modified Preorder Tree Traversal
|
|
django-redis>=5.0.0 # Redis integration
|
|
django-q # Background task scheduling
|
|
django-q-sentry # sentry.io integration for django-q
|
|
django-sql-utils # Advanced query annotation / aggregation
|
|
django-sslserver # Secure HTTP development server
|
|
django-stdimage<6.0.0 # Advanced ImageField management # FIXED 2022-06-29 6.0.0 breaks serialization for django-q
|
|
django-taggit # Tagging support
|
|
django-user-sessions # user sessions in DB
|
|
django-weasyprint # django weasyprint integration
|
|
djangorestframework # DRF framework
|
|
django-xforwardedfor-middleware # IP forwarding metadata
|
|
drf-spectacular # DRF API documentation
|
|
feedparser # RSS newsfeed parser
|
|
gunicorn # Gunicorn web server
|
|
pdf2image # PDF to image conversion
|
|
pillow # Image manipulation
|
|
pint # Unit conversion
|
|
python-barcode[images] # Barcode generator
|
|
qrcode[pil] # QR code generator
|
|
rapidfuzz==0.7.6 # Fuzzy string matching
|
|
regex # Advanced regular expressions
|
|
sentry-sdk # Error reporting (optional)
|
|
setuptools # Standard depenedency
|
|
tablib[xls,xlsx,yaml] # Support for XLS and XLSX formats
|
|
weasyprint==54.3 # PDF generation
|
|
|
|
# Fixed sub-dependencies
|
|
py-moneyed<2.0 # For django-money # FIXED 2022-06-18 as we need `moneyed.localization`
|