Given is a Django model called BlogPost
. At first, it's coded without a Meta.verbose_name
. At ./manage.py syncdb
time, a ContentType
with a name "blog post" is created automatically. At some later point of time, Meta.verbose_name
of "Blog post" is added.
Now there is a discrepancy: ContentType
is called "blog post", while the model goes by verbose name of "Blog post", this difference is shown in any framework using generic relationships, e.g. in comments' admin. I would like to correct this situation by changing the name of the ContentType
, however, I wouldn't want to do that either by hand (for obvious reasons) or via a migration (since I don't migrate anything else, Meta.verbose_name
is just a code change).
How would you update the ContentType
's name upon Meta.verbose_name
change?