My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  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 alexande...@gmail.com, 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 ./manage.py evolve --hint proposes me some evolutions to do (to
add and delete field), though it shouldn't do that.
Aug 8, 2008
#1 alexande...@gmail.com
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?
db_column.diff
637 bytes   View   Download
Sign in to add a comment

Powered by Google Project Hosting