Skip to main content

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

Project description

PyPI Version PY Versions Build Status Test Coverage

The MIT License (MIT)

Overview

At the time of this writing DColumn supports Django 2.x and probably back to 1.8.0. The biggest issue with supporting older versions of Django is with the new way urlpatterns is used. Python 2.7, 3.4, 3.5 and 3.6 are supported.

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.

Warning

Version 2.0 is a partial rewrite of Django DColumns and is NOT backwards compatible with previous versions. It now needs to use fields defined in user forms. The latest releases of Django would not work with the old way Dcolumns had previously handled fields. This is actually better as it is now more consistent with how Django does things.

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.

Files for django-dcolumns, version 2.0.1
Filename, size & hash File type Python version Upload date
django_dcolumns-2.0.1-py2.py3-none-any.whl (48.4 kB) View hashes Wheel py2.py3
django-dcolumns-2.0.1.tar.gz (37.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page