Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

UNKNOWN

Project description

django-abstract-utils

Currently, this library provides only one method that operates on Django abstract model class:

  • without (or AbstractClassWithoutFieldsNamed) - create a subclass of an abstract Django model class with certain fields removed

This was ripped off from someone’s Gist. Feel free to submit a PR with authorship!

Installation

pip install django_abstract_utils

Usage

from django_abstract_utils import without
from oscar.apps.address.abstract_models import AbstractBillingAddress

class BillingAddress(without(AbstractBillingAddress, 'phone_number')):
        pass

Project details


Release history Release notifications

This version
History Node

0.0.1

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-abstract-utils-0.0.1.tar.gz (1.6 kB) Copy SHA256 hash SHA256 Source None Jul 14, 2016

Supported by

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