2 ms·
(sorry, this is way old, but I just saw your response) you might be interested in the 'db_column' option to Django fields, e.g. content = models.TextField(db_
by mattdw 17y ago
(sorry, this is way old, but I just saw your response)
you might be interested in the 'db_column' option to Django fields, e.g.
content = models.TextField(db_column='a_different_column_name')
That will allow you to have 'content' on the model, but 'a_different_column_name' in the database. It can be quite helpful for talking to legacy systems.