Skip to main content
Maintainability

Product Table for Django-Oscar

This implements a nice and useful table view to manage Products and its data in one big table. It is designed for the e-commerce framework Oscar.

Product data that can be used:

  • Data that is directly attached to the Product model including foreign key choices

  • AttributeValues of the products

  • StockRecord entries

With this piece of code you give your Shop managers a perfect overview.

Features

  • Load table with Ajax

  • Load single form for every table cell that you want to change

  • Submits the data with Ajax but shows validation errors to the frontend

  • Filter the data by every column is possible (like you know from table calculation software)

  • Manage all Data from all products without page reload

Installation

Install using pip:

pip install django-oscar-product-tables
# settings.py
INSTALLED_APPS = [
    # ...
    'oscar_product_tables.apps.ProductTablesConfig',
    'oscar_product_tables.dashboard.apps.ProductTablesDashboardConfig',
    # ...
]

Create urls:

urlpatterns = [
    # ..
    path('dashboard/product_tables/', apps.get_app_config('product_tables_dashboard').urls),
    # ..
]

Add it as first button of catalogue in dashboard:

# settings.py
OSCAR_DASHBOARD_NAVIGATION[1]['children'] = [
    {
        'label': _('Producttable'),
        'url_name': 'product_tables_dashboard:product-table',
    },
    *OSCAR_DASHBOARD_NAVIGATION[1]['children'],
]

Settings

If you want to add some fields that are directly attached to the Product model:

# settings.py
OSCAR_ATTACHED_PRODUCT_FIELDS = ['is_public', 'deposit', 'volume', 'weight',]

Release files for django-oscar-product-tables 0.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-oscar-product-tables 0.8.6
File Size Uploaded
django-oscar-product-tables-0.8.6.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-oscar-product-tables 0.8.6
File Interpreter ABI Platform
django_oscar_product_tables-0.8.6-py3-none-any.whl Python 3 none any Details

Total release size: 29.8 kB

Release files / django-oscar-product-tables-0.8.6.tar.gz

Download URL django-oscar-product-tables-0.8.6.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce7be63726e250ea8c79fea7a4addd05b1b7119f1c55937e5a15e92ce30edb51
BLAKE2b-256 checksum
How to use checksums
681df43b2514cd803a475b88f8e3ddc36e7ed167c472d6139693edc9a5dd2538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / django_oscar_product_tables-0.8.6-py3-none-any.whl

Download URL django_oscar_product_tables-0.8.6-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d07233074b42fa131a330b71f7c01fb603a9cefef905046d9e0c55a0182e543c
BLAKE2b-256 checksum
How to use checksums
82fbec04403a9ed42c03469f41ba485d2f8038f58332c2be130ed8d227d9628c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.8.6 This release

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

1 release file

0.8.0

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page