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 details)

Uploaded Source

File details

Details for the file django-abstract-utils-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-abstract-utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7213a692547e7244234c2cdd90863c21ad637dc206608d00cae0a529917e3e42
MD5 8a821d881b91d20f37baafd3bbe049be
BLAKE2b-256 1a013b9cd60e9d3402dd19d1cecb14aaf0ce552cafaa0d60bfd14d713bcb2cdc

See more details on using hashes here.

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