Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

https://img.shields.io/pypi/v/django-jsonfallback.svg https://travis-ci.com/raphaelm/django-jsonfallback.svg?branch=master https://codecov.io/gh/raphaelm/django-jsonfallback/branch/master/graph/badge.svg

This is an extension to django.contrib.postgres.fields.JSONField, that works on other databases than PostgreSQL.

  • On MySQL and MariaDB, it uses the native JSON data type and supports most features.

  • On SQLite and all other databases, it just stores JSON strings in a text field and does not support querying.

This is tested against:

  • Python 3.4 to 3.6

  • Django 2.0 to 2.1

  • MySQL 5.7

  • MariaDB 10.3

  • PostgreSQL 9.4

  • SQLite (no querying funcationality)

Usage

Just use our drop-in replacement for JSONField:

from django.db import models
from jsonfallback.fields import FallbackJSONField


class Book(models.Model):
    data = FallbackJSONField()

    def __str__(self):
        return str(self.data['title'])

License

The code in this repository is published under the terms of the Apache License. See the LICENSE file for the complete license text.

This project is maintained by Raphael Michel <mail@raphaelmichel.de>. See the AUTHORS file for a list of all the awesome folks who contributed to this project.

Metadata

Release files for django-jsonfallback 2.1.2

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-jsonfallback 2.1.2
File Size Uploaded
django-jsonfallback-2.1.2.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-jsonfallback 2.1.2
File Interpreter ABI Platform
django_jsonfallback-2.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / django-jsonfallback-2.1.2.tar.gz

Download URL django-jsonfallback-2.1.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0132c655e422e382a8a6b0d11319f5655e25fa6eb225ad10c0a05584c5fa1a0e
BLAKE2b-256 checksum
How to use checksums
616676401cb44b2a1882db71764709f93b324a5e36b8d53b7359c75766e5e0a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

Release files / django_jsonfallback-2.1.2-py3-none-any.whl

Download URL django_jsonfallback-2.1.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab17e6d854924b419a6bec7d98ca01f30e043c63ee560f6eaa7f5ab73324e85b
BLAKE2b-256 checksum
How to use checksums
19c44f2257e015ecfa4310ef0ac1a045f4ba31a847eae4ff9c3d1ac23a69cf3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
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