django-bom 1.257__tar.gz → 1.263__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_bom-1.257/django_bom.egg-info → django_bom-1.263}/PKG-INFO +2 -2
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0052_remove_partrevision_attribute_and_more.py +13 -5
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/style.css +75 -11
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/part-revision-display.html +4 -1
- django_bom-1.263/bom/templates/bom/settings.html +734 -0
- {django_bom-1.257 → django_bom-1.263/django_bom.egg-info}/PKG-INFO +2 -2
- {django_bom-1.257 → django_bom-1.263}/django_bom.egg-info/requires.txt +1 -1
- {django_bom-1.257 → django_bom-1.263}/pyproject.toml +7 -7
- django_bom-1.257/bom/templates/bom/settings.html +0 -592
- {django_bom-1.257 → django_bom-1.263}/LICENSE +0 -0
- {django_bom-1.257 → django_bom-1.263}/MANIFEST.in +0 -0
- {django_bom-1.257 → django_bom-1.263}/README.md +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/__init__.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/admin.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/apps.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/auth_backends.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/base_classes.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/constants.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/context_processors.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/csv_headers.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/decorators.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/form_fields.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/forms.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/helpers.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/local_settings.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0001_initial.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0002_auto_20180908_2151.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0003_sellerpart_data_source.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0004_auto_20180911_0011.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0005_auto_20181007_1934.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0006_auto_20181007_1949.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0007_auto_20181009_0256.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0008_auto_20181030_0427.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0009_subpart_reference.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0010_auto_20181202_0733.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0011_auto_20181202_2113.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0012_partchangehistory.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0013_auto_20190222_1631.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0014_auto_20190223_2353.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0015_auto_20190303_1915.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0016_auto_20190405_2308.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0017_auto_20190616_1912.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0018_auto_20190616_2143.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0019_auto_20190624_1246.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0020_auto_20190627_0207.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0021_auto_20190627_0428.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0022_auto_20190811_2140.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0023_auto_20191205_2351.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0024_auto_20191214_1342.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0025_auto_20191221_1907.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0026_auto_20191222_2258.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0027_auto_20191222_2347.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0028_partrevision_displayable_synopsis.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0029_auto_20191231_1630.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0030_auto_20200101_2253.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0031_auto_20200104_1352.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0032_auto_20200126_1806.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0033_auto_20200203_0618.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0034_auto_20200222_0359.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0035_auto_20200303_0111.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0036_auto_20200303_0538.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0037_auto_20200405_1642.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0038_auto_20200422_0504.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0039_auto_20200929_2315.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0040_alter_organization_currency.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0041_organization_subscription_quantity.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0042_auto_20210720_2137.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0043_auto_20211123_0157.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0044_auto_20220831_1241.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0045_sellerpart_link.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0046_alter_sellerpart_unique_together.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0047_sellerpart_seller_part_number.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0048_rename_part_organization_number_class_bom_part_organiz_b333d6_idx_and_more.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0049_alter_assembly_id_alter_assemblysubparts_id_and_more.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0050_alter_organization_options.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/0051_alter_manufacturer_organization_and_more.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/migrations/__init__.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/models.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/part_bom.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/settings.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/dashboard.css +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/jquery.treetable.css +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/materialize.min.css +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/part-info.css +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/tablesorter-theme.materialize.css +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/css/treetable-theme.css +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/doc/sample_part_classes.csv +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/doc/test_bom.csv +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/doc/test_bom_5_intelligent.csv +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/doc/test_full_bom.csv +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/doc/test_new_parts.csv +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/doc/test_new_parts_5_intelligent.csv +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/_ionicons_svg_md-arrow-dropdown.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/_ionicons_svg_md-arrow-dropright.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/favicon.ico +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_dark_disabled_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_dark_focus_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_dark_normal_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_dark_pressed_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_light_disabled_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_light_focus_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_light_normal_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/1x/btn_google_signin_light_pressed_web.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_dark_disabled_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_dark_focus_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_dark_normal_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_dark_pressed_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_light_disabled_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_light_focus_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_light_normal_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/2x/btn_google_signin_light_pressed_web@2x.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_disabled_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_disabled_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_focus_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_focus_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_normal_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_normal_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_pressed_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_dark_pressed_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_disabled_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_disabled_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_focus_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_focus_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_normal_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_normal_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_pressed_ios.eps +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google/web/vector/btn_google_light_pressed_ios.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/google_drive_logo.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/indabom.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/mouser.png +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/img/octopart_blue.svg +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/js/formset-handler.js +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/js/jquery-3.4.1.min.js +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/js/jquery.ba-floatingscrollbar.min.js +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/js/jquery.treetable.js +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/static/bom/js/materialize.min.js +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/account-delete.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/add-manufacturer-part.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/add-sellerpart.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/base-menu.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/base.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-action-btn.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-action-table.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-base-menu.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-base.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-form-modal.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-form.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-modal-add-users.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/bom-signup.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/components/bom-flat.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/components/bom-indented.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/components/manufacturer-part-list.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/components/seller-part-list.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/create-part.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/dashboard-menu.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/dashboard.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/edit-manufacturer-part.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/edit-part-class.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/edit-part.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/edit-quantity-of-measure.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/edit-user-meta.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/help.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/manufacturer-info.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/manufacturers.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/nothing-to-see.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/organization-create.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/part-info.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/part-revision-edit.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/part-revision-manage-bom.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/part-revision-new.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/part-revision-release.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/search-help.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/seller-info.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/sellers.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/signup.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/subscription_panel.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/table_of_contents.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/upload-bom.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/upload-parts-help.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/bom/upload-parts.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/templates/registration/login.html +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/tests.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/third_party_apis/__init__.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/third_party_apis/base_api.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/third_party_apis/google_drive.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/third_party_apis/mouser.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/third_party_apis/test_apis.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/urls.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/utils.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/validators.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/views/__init__.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/views/json_views.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/views/views.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/bom/wsgi.py +0 -0
- {django_bom-1.257 → django_bom-1.263}/django_bom.egg-info/SOURCES.txt +0 -0
- {django_bom-1.257 → django_bom-1.263}/django_bom.egg-info/dependency_links.txt +0 -0
- {django_bom-1.257 → django_bom-1.263}/django_bom.egg-info/top_level.txt +0 -0
- {django_bom-1.257 → django_bom-1.263}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-bom
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.263
|
|
4
4
|
Summary: A simple Django app to manage a bill of materials.
|
|
5
5
|
Author-email: Mike Kasparian <mpkasp@gmail.com>
|
|
6
6
|
License: GPL-3.0-only
|
|
@@ -22,7 +22,7 @@ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: Django
|
|
25
|
+
Requires-Dist: Django>=5.2
|
|
26
26
|
Requires-Dist: social-auth-app-django<6,>=5
|
|
27
27
|
Requires-Dist: social-auth-core<6,>=4
|
|
28
28
|
Requires-Dist: google-api-python-client>=2
|
{django_bom-1.257 → django_bom-1.263}/bom/migrations/0052_remove_partrevision_attribute_and_more.py
RENAMED
|
@@ -215,9 +215,17 @@ def migrate_part_revision_data(apps, schema_editor):
|
|
|
215
215
|
if quantity_name:
|
|
216
216
|
qom_obj = QuantityOfMeasure.objects.get(name=quantity_name)
|
|
217
217
|
|
|
218
|
+
# Map long type names to single character codes
|
|
219
|
+
type_mapping = {
|
|
220
|
+
'number': 'D',
|
|
221
|
+
'string': 'S',
|
|
222
|
+
'boolean': 'B',
|
|
223
|
+
}
|
|
224
|
+
mapped_type = type_mapping.get(type_val, type_val)
|
|
225
|
+
|
|
218
226
|
definition, created = PartRevisionPropertyDefinition.objects.get_or_create(
|
|
219
227
|
code=code,
|
|
220
|
-
defaults={'name': name, 'type':
|
|
228
|
+
defaults={'name': name, 'type': mapped_type, 'quantity_of_measure': qom_obj, 'organization': None}
|
|
221
229
|
)
|
|
222
230
|
definitions[old_field] = definition
|
|
223
231
|
|
|
@@ -226,25 +234,25 @@ def migrate_part_revision_data(apps, schema_editor):
|
|
|
226
234
|
qom_res = QuantityOfMeasure.objects.get(name='Resistance')
|
|
227
235
|
def_resistance, _ = PartRevisionPropertyDefinition.objects.get_or_create(
|
|
228
236
|
code='resistance',
|
|
229
|
-
defaults={'name': 'Resistance', 'type': '
|
|
237
|
+
defaults={'name': 'Resistance', 'type': 'D', 'quantity_of_measure': qom_res, 'organization': None}
|
|
230
238
|
)
|
|
231
239
|
|
|
232
240
|
qom_cap = QuantityOfMeasure.objects.get(name='Capacitance')
|
|
233
241
|
def_capacitance, _ = PartRevisionPropertyDefinition.objects.get_or_create(
|
|
234
242
|
code='capacitance',
|
|
235
|
-
defaults={'name': 'Capacitance', 'type': '
|
|
243
|
+
defaults={'name': 'Capacitance', 'type': 'D', 'quantity_of_measure': qom_cap, 'organization': None}
|
|
236
244
|
)
|
|
237
245
|
|
|
238
246
|
qom_ind = QuantityOfMeasure.objects.get(name='Inductance')
|
|
239
247
|
def_inductance, _ = PartRevisionPropertyDefinition.objects.get_or_create(
|
|
240
248
|
code='inductance',
|
|
241
|
-
defaults={'name': 'Inductance', 'type': '
|
|
249
|
+
defaults={'name': 'Inductance', 'type': 'D', 'quantity_of_measure': qom_ind, 'organization': None}
|
|
242
250
|
)
|
|
243
251
|
|
|
244
252
|
# Fallback for Generic Parts (ICs, etc) that have a 'value' but no specific type
|
|
245
253
|
def_value, _ = PartRevisionPropertyDefinition.objects.get_or_create(
|
|
246
254
|
code='value',
|
|
247
|
-
defaults={'name': 'Value', 'type': '
|
|
255
|
+
defaults={'name': 'Value', 'type': 'S', 'quantity_of_measure': None, 'organization': None}
|
|
248
256
|
)
|
|
249
257
|
|
|
250
258
|
# 3. Helper for Unit Lookup
|
|
@@ -8,38 +8,36 @@ main {
|
|
|
8
8
|
min-height: 100vh;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
p {
|
|
12
|
-
font-size: 1.
|
|
13
|
-
font-weight: 300;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
li {
|
|
17
|
-
font-size: 1.2em;
|
|
11
|
+
p, li {
|
|
12
|
+
font-size: 1.1rem; /* Slightly larger to compensate for thin weight */
|
|
18
13
|
font-weight: 300;
|
|
19
14
|
}
|
|
20
15
|
|
|
16
|
+
/* We use significant size differences to replace the lack of bold weights */
|
|
21
17
|
h1 {
|
|
22
|
-
font-size:
|
|
18
|
+
font-size: 2.5rem;
|
|
23
19
|
font-weight: 300;
|
|
20
|
+
line-height: 1.1;
|
|
24
21
|
}
|
|
25
22
|
|
|
26
23
|
h2 {
|
|
27
|
-
font-size:
|
|
24
|
+
font-size: 2.0rem;
|
|
28
25
|
font-weight: 300;
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
h3 {
|
|
32
|
-
font-size: 1.
|
|
29
|
+
font-size: 1.7rem;
|
|
33
30
|
font-weight: 300;
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
h4 {
|
|
37
|
-
font-size: 1.
|
|
34
|
+
font-size: 1.4rem;
|
|
38
35
|
font-weight: 300;
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
h5 {
|
|
42
39
|
font-size: 1.1rem;
|
|
40
|
+
font-weight: 400;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
.tabs {
|
|
@@ -415,4 +413,70 @@ a.anchor {
|
|
|
415
413
|
.container-app .right-align .btn,
|
|
416
414
|
.container-app .right-align .btn-flat {
|
|
417
415
|
margin-left: 4px;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
/* Master-Detail Settings Layout */
|
|
420
|
+
.settings-grid {
|
|
421
|
+
margin-top: 20px;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
@media only screen and (min-width: 993px) {
|
|
425
|
+
.settings-grid {
|
|
426
|
+
display: flex;
|
|
427
|
+
flex-wrap: nowrap;
|
|
428
|
+
align-items: stretch;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.settings-nav {
|
|
433
|
+
padding: 0 !important;
|
|
434
|
+
border-right: 1px solid #e0e0e0;
|
|
435
|
+
min-height: 70vh;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.settings-nav .collection {
|
|
439
|
+
border: none;
|
|
440
|
+
margin: 0;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.settings-nav .collection .collection-item {
|
|
444
|
+
border: none;
|
|
445
|
+
padding: 12px 20px;
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
color: #5f6368;
|
|
449
|
+
cursor: pointer;
|
|
450
|
+
transition: background-color 0.2s;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.settings-nav .collection .collection-item:hover {
|
|
454
|
+
background-color: #f1f3f4;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.settings-nav .collection .collection-item.active {
|
|
458
|
+
background-color: rgba(165, 214, 167, 0.5);
|
|
459
|
+
color: #000000;
|
|
460
|
+
font-weight: 500;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.settings-nav .collection .collection-item .material-icons {
|
|
464
|
+
margin-right: 16px;
|
|
465
|
+
font-size: 20px;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.settings-content {
|
|
469
|
+
padding: 0 40px !important;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
@media only screen and (max-width: 992px) {
|
|
473
|
+
.settings-nav {
|
|
474
|
+
border-right: none;
|
|
475
|
+
border-bottom: 1px solid #e0e0e0;
|
|
476
|
+
min-height: auto;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.settings-content {
|
|
480
|
+
padding: 0 20px !important;
|
|
481
|
+
}
|
|
418
482
|
}
|
|
@@ -24,9 +24,12 @@ where XXX should be the name of the includee's object that represent its PartRev
|
|
|
24
24
|
<div class="col s12">
|
|
25
25
|
{% if part_revision_form.property_definitions %}
|
|
26
26
|
<h4>Properties</h4>
|
|
27
|
-
{%
|
|
27
|
+
{% elif not part_revision_form.instance.pk %}
|
|
28
28
|
<p><i>You can add part class specific properties (e.g. voltage, width, sheen, etc) after creating the
|
|
29
29
|
part.</i></p>
|
|
30
|
+
{% else %}
|
|
31
|
+
<p><i>This part has no properties assigned. The organization admin can assign properties to this part class
|
|
32
|
+
in settings.</i></p>
|
|
30
33
|
{% endif %}
|
|
31
34
|
</div>
|
|
32
35
|
</div>
|