Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cnobile2012/dcolumn
Dynamically add fields to Django database models.
https://github.com/cnobile2012/dcolumn
database django django-application python
Last synced: 9 days ago
JSON representation
Dynamically add fields to Django database models.
- Host: GitHub
- URL: https://github.com/cnobile2012/dcolumn
- Owner: cnobile2012
- License: mit
- Created: 2014-06-21T01:37:28.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-06T16:59:13.000Z (6 months ago)
- Last Synced: 2024-10-31T10:42:38.221Z (16 days ago)
- Topics: database, django, django-application, python
- Language: Python
- Homepage:
- Size: 915 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
====================================
Django Tool to Create Dynamic Fields
====================================.. image:: http://img.shields.io/pypi/v/django-dcolumns.svg
:target: https://pypi.python.org/pypi/django-dcolumns
:alt: PyPI Version.. image:: http://img.shields.io/pypi/wheel/django-dcolumns.svg
:target: https://pypi.python.org/pypi/django-dcolumns
:alt: PyPI Wheel.. image:: http://img.shields.io/pypi/l/django-dcolumns.svg
:target: https://pypi.python.org/pypi/django-dcolumns
:alt: License.. image:: https://img.shields.io/pypi/pyversions/django-dcolumns.svg
:target: https://pypi.python.org/pypi/django-dcolumns
:alt: PY Versions.. image:: http://img.shields.io/travis/cnobile2012/dcolumn/master.svg
:target: http://travis-ci.org/cnobile2012/dcolumn
:alt: Build Status.. image:: http://img.shields.io/coveralls/cnobile2012/dcolumn/master.svg
:target: https://coveralls.io/r/cnobile2012/dcolumn
:alt: Test Coverage.. image:: https://readthedocs.org/projects/django-dcolumns/badge/?version=latest
:target: https://django-dcolumns.readthedocs.io/en/latest/?badge=latest
:alt: Documentation StatusThe 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.The highest version of Django that DColumn will work with Django 3.2.25 and
Python 3.9 and above. The current code was tested with Django 3.2.25 and
Python 3.11... 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 `_