Skip to main content

A new model and form field flexible for schema changes, stored as JSON in database.

Project description


A new model and form field flexible for schema changes. Internally is stored as JSON field in database.


In your




In your

class MyModel(models.Model):


    config = ConfigField(verbose_name=_('Config'), null=True, blank=True)

In your

class MyForm(forms.ModelForm):

    class Meta:
        model = MyModel

    def __init__(self, *args, **kwargs):
        super(MyForm, self).__init__(*args, **kwargs)
            config_dict = self.instance.config
            config_dict = MY_DEFAULT_CONFIG_DICT


You can get the last bleeding edge version of django-configfield by doing a clone of its hg repository:

hg clone


  • Frozen django-jsonfield version because the latest version is broken with configfield.


  • Fix a error, when a param of the dict was None


  • Add the set_config_dict function
  • Remove the smart_if dependence
  • Remove the JSONField class and use the JSONField of the django-jsonfield egg
  • Write a readme with an install
  • Add the django-jsonfield in the requeriements


  • Improved type checking. Needed when the config field is placed in a subclass.
  • Fix name of base template.


  • Initial version

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-configfield-0.2.2.tar.gz (13.7 kB) Copy SHA256 hash SHA256 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