Skip to main content

An app to give any Django database model the ability to dynamically add fields.

Project description

PyPI Version PyPI Wheel License PY Versions Build Status Test Coverage

The MIT License (MIT)

Overview

DColumn is a Django plugin that lets the developer add columns to a model dynamically. It does this in the same way that the admin uses an inline model. Matter-of-fact that is exactly how the additional columns are displayed in the admin. The only addition is that there is special JavaScript that converts the column type to the type you have previously set it to.

This can be done, because any type of field can be represented as a string. There are two methods on any model you define as a Dcolumn model that does conversion in and out of the type you have set.

DColumn now will only work with Django 3.2 and above and therefore only Python 3.6 and above.

Provides

  1. Functionality to permit the addition of fields to a model through the admin.

  2. Add pseudo models for static data objects.

  3. The admin reflects all newly added fields in the correct type.

Feel free to contact me at: carl dot nobile at gmail.com

Complete Documentation can be found on Read the Docs at: Django DColumns

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-dcolumns-3.1.0.tar.gz (38.9 kB view hashes)

Uploaded source

Built Distribution

django_dcolumns-3.1.0-py2.py3-none-any.whl (47.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page