Opened 7 years ago
Closed 7 years ago
#30048 closed Bug (duplicate)
Migrations created when verbose_name or help_text is changed
| Reported by: | Oskar Persson | Owned by: | nobody |
|---|---|---|---|
| Component: | Migrations | Version: | 2.1 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
A new migration is created whenever verbose_name or help_text is changed even though both of them has nothing to do with the database.
Tested with this initial model
from django.db import models
class Book(models.Model):
title = models.CharField(max_length=255)
which was later updated to
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Book(models.Model):
title = models.CharField(_('title'), max_length=255, help_text="Title of the book")
Tested with Django 1.11.16 (Python 3.6.6) and 2.1.4 (Python 3.7.0)
Change History (1)
comment:1 by , 7 years ago
| Component: | Uncategorized → Migrations |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
| Type: | Uncategorized → Bug |
Note:
See TracTickets
for help on using tickets.
This is essentially a Duplicate of #21498, on which there's some noise but, for which the underlying response was
wontfix.Relevant comments from Andrew Godwin: