Skip to main content

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


Download files

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

Source Distribution

django-abstract-utils-0.0.1.tar.gz (1.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page