
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
django-migrations-ignore-attrs
Advanced tools
.. image:: https://img.shields.io/pypi/v/django-migrations-ignore-attrs.svg :target: https://pypi.python.org/pypi/django-migrations-ignore-attrs .. image:: https://travis-ci.org/dex4er/django-migrations-ignore-attrs.svg?branch=master :target: https://travis-ci.org/dex4er/django-migrations-ignore-attrs .. image:: https://readthedocs.org/projects/django-migrations-ignore-attrs/badge/?version=latest :target: http://django-migrations-ignore-attrs.readthedocs.org/en/latest/ .. image:: https://img.shields.io/pypi/pyversions/django-migrations-ignore-attrs.svg :target: https://www.python.org/ .. image:: https://img.shields.io/pypi/djversions/django-migrations-ignore-attrs.svg :target: https://www.djangoproject.com/
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:
Following attributes of standard fields are ignored:
Following attributes of ForeignKey
are ignored:
Install with pip
or pipenv
:
.. code:: python
pip install django-migrations-ignore-attrs
Add django_migrations_ignore_attrs
to your installed apps in your
settings.py file:
.. code:: python
INSTALLED_APPS = [ 'django_migrations_ignore_attrs', ... ]
Optional configuration:
.. code:: python
MIGRATION_IGNORE_MODEL_ATTRS = ['verbose_name', 'verbose_name_plural']
MIGRATION_IGNORE_FIELD_ATTRS = ['choices', 'help_text', 'verbose_name']
MIGRATION_IGNORE_RELATED_FIELD_ATTRS = ['related_name', 'related_query_name']
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.
See http://django-migrations-ignore-attrs.readthedocs.org/
Copyright © 2019, Piotr Roszatycki
This software is distributed under the GNU Lesser General Public License (LGPL 3 or greater).
FAQs
Do not generate unnecessary migrations
We found that django-migrations-ignore-attrs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.