django-migrations-ignore-attrs
django-migrations-ignore-attrs is a package that overrides makemigration and migrate commands for Django’s manage.py command.
django-migrations-ignore-attrs allows to avoid making of unnecessary migrations for attributes that do not have any representation in database schema.
Following attributes of model are ignored:
verbose_name
verbose_name_plural
Following attributes of standard fields are ignored:
choices
help_text
verbose_name
Following attributes of ForeignKey are ignored:
related_name
related_query_name
Installation
Install with pip or pipenv:
pip install django-migrations-ignore-attrs
Add django_migrations_ignore_attrs to your installed apps in your settings.py file:
INSTALLED_APPS = [
'django_migrations_ignore_attrs',
...
]
Optional configuration:
# ignored attributes of model
MIGRATION_IGNORE_MODEL_ATTRS = ['verbose_name', 'verbose_name_plural']
# ignored attributes of standard fields
MIGRATION_IGNORE_FIELD_ATTRS = ['choices', 'help_text', 'verbose_name']
# ignored attributes of ForeignKey
MIGRATION_IGNORE_RELATED_FIELD_ATTRS = ['related_name', 'related_query_name']
Commands
makemigrations
Creates new migration(s) for apps.
All options are the same as for original makemigrations command from django app.
migrate
Updates database schema. Manages both apps with migrations and those without.
All options are the same as for original migrate command from django app.
Documentation
License
Copyright © 2019, Piotr Roszatycki
This software is distributed under the GNU Lesser General Public License (LGPL 3 or greater).
Metadata
Release files for django-migrations-ignore-attrs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-migrations-ignore-attrs-0.1.0.tar.gz | 16.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_migrations_ignore_attrs-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / django-migrations-ignore-attrs-0.1.0.tar.gz
| Download URL | django-migrations-ignore-attrs-0.1.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3cf0a54d51fae7564e792f27f41173e6474e18be1628270fa0b6ba43ed5acaf
|
|
BLAKE2b-256 checksum How to use checksums |
34dafb733d6d021e44822339acb076d4ddce1503180a926d26009f1c61c26967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|
Release files / django_migrations_ignore_attrs-0.1.0-py2.py3-none-any.whl
| Download URL | django_migrations_ignore_attrs-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1410276711dd17797889d06dd7a271ddb941af3439e2693cee44009c7ad174a8
|
|
BLAKE2b-256 checksum How to use checksums |
f7f2bf0a4fe4f67584630ceeba6fc4db8865ce32c1d7fc8914aa6ffb03a3b4cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|
Security for django-migrations-ignore-attrs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.