Skip to main content

Django Utilities for Postgresql

Project description

https://badge.fury.io/py/django-postgres-utils.svg https://travis-ci.org/tehamalab/django-postgres-utils.svg?branch=master https://codecov.io/gh/tehamalab/django-postgres-utils/branch/master/graph/badge.svg

UtiliUtilities for Django Postgresql

Quickstart

Install Django Postgres Utils:

pip install django-postgres-utils

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_postgres_utils',
    ...
)

Sample usage usage of AdminHStoreWidget in admin:

# admin.py
from django.contrib import admin
from django.contrib.postgres.fields import HStoreField
from django_postgres_utils.widgets import AdminHStoreWidget
# ...

class MyModelAdmin(admin.ModelAdmin):

    formfield_overrides = {
        HStoreField: {'widget': AdminHStoreWidget},
    }

# ...

Features

  • User friendly Admin widget for django HStoreField; django_postgres_utils.widgets.AdminHStoreWidget

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2017-09-18)

  • First release on PyPI.

0.1.1 (2018-10-03)

  • Upgrade to underscore 1.9.1
  • Fix bug in displaying quoted values

0.1.2 (2018-11-20)

  • Django 2.1 compatibility

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-postgres-utils, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django-postgres-utils-0.1.2.tar.gz (16.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page