My favorites | Sign in
Project Home Wiki Issues
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 71: Evolve --hint does not respect db_field
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by, Aug 8, 2008
I had field like this:

src_url = models.CharField(max_length=200)

and I've changed it to:

_src_url = models.CharField(max_length=200, db_column='src_url')

After that ./ evolve --hint proposes me some evolutions to do (to
add and delete field), though it shouldn't do that.
Aug 8, 2008
This patch partially fixes trouble: evolution does not generate sql, but ChangeField
is still there. After execution all works fine.

I'm wondering how to improve this patch - maybe 'db_column' by default should be
equal to column name and not to None?
637 bytes   View   Download
Sign in to add a comment

Powered by Google Project Hosting