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

Metadata

Release files for django-abstract-utils 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-abstract-utils 0.0.1
File Size Uploaded
django-abstract-utils-0.0.1.tar.gz 1.6 kB Details

Release files / django-abstract-utils-0.0.1.tar.gz

Download URL django-abstract-utils-0.0.1.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7213a692547e7244234c2cdd90863c21ad637dc206608d00cae0a529917e3e42
BLAKE2b-256 checksum
How to use checksums
1a013b9cd60e9d3402dd19d1cecb14aaf0ce552cafaa0d60bfd14d713bcb2cdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page