Skip to main content

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

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page