Issue 102 in django-evolution: Error when evolving from IntegerField to FloatField

2 views
Skip to first unread message

codesite...@google.com

unread,
May 10, 2009, 10:12:43 PM5/10/09
to django-evolu...@googlegroups.com
Status: New
Owner: ----

New issue 102 by paddyjoy: Error when evolving from IntegerField to
FloatField
http://code.google.com/p/django-evolution/issues/detail?id=102

What steps will reproduce the problem?
1. Create sample project and enable django-evolution
2. Create simple model
class Author(models.Model):
name = models.CharField(max_length=50)
email = models.EmailField()
date_of_birth = models.DateField()
age = models.IntegerField()
3. Run syncdb
4. Modify model and change Integer to Float
class Author(models.Model):
name = models.CharField(max_length=50)
email = models.EmailField()
date_of_birth = models.DateField()
age = models.FloatField()
5. Run python manage.py evolve --hint


What is the expected output? What do you see instead?

Expected output is to see evolution hint, instead an eror is produced:
joytech:/var/django/evolution_test# python manage.py evolve --hint
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
359, in execute_manager
utility.execute()
File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
304, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 222, in execute
output = self.handle(*args, **options)
File
"/usr/lib/python2.5/site-packages/django_evolution/management/commands/evolve.py",
line 87, in handle
hinted_evolution = diff.evolution()
File "/usr/lib/python2.5/site-packages/django_evolution/diff.py", line
197, in evolution
changed_attrs[prop] = current_field_sig.get(prop,
ATTRIBUTE_DEFAULTS[prop])
KeyError: 'field_type'


What version of the product are you using? On what operating system? What
database backend?
django - SVN 10736
django-evolution - SVN 165
Ubuntu
MySql and SQLlite

Please provide any additional information below.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages