1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33471 -- Made AlterField operation a noop when changing "choices".

This also allows customizing attributes of fields that don't affect
a column definition.
This commit is contained in:
sarahboyce
2022-04-01 20:21:43 +02:00
committed by Mariusz Felisiak
parent 6991880109
commit 65effbdb10
5 changed files with 58 additions and 15 deletions

View File

@@ -288,6 +288,10 @@ Models
on MariaDB and MySQL. For databases that do not support ``XOR``, the query
will be converted to an equivalent using ``AND``, ``OR``, and ``NOT``.
* The new :ref:`Field.non_db_attrs <custom-field-non_db_attrs>` attribute
allows customizing attributes of fields that don't affect a column
definition.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~