Modify ↓
Ticket #314 (closed defect: fixed)
eval() breaks --intial migration
| Reported by: | Bryan Veloso <bryan@…> | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7 |
| Component: | commands | Version: | 0.7-pre |
| Keywords: | Cc: |
Description
Here's another one for your coffers Andrew. If I remove the if meta: statement starting at line 263, my initial migration is created as expected.
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/home/bryan/.local/lib/python2.6/site-packages/django/core/management/__init__.py", line 439, in execute_manager
utility.execute()
File "/home/bryan/.local/lib/python2.6/site-packages/django/core/management/__init__.py", line 380, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/bryan/.local/lib/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/bryan/.local/lib/python2.6/site-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/home/bryan/.local/lib/python2.6/site-packages/south/management/commands/schemamigration.py", line 123, in handle
for action_name, params in change_source.get_changes():
File "/home/bryan/.local/lib/python2.6/site-packages/south/creator/changes.py", line 264, in get_changes
unique_together = eval(meta.get("unique_together", []))
TypeError: eval() arg 1 must be a string or code object
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Bugs in 0.7 already? Well done.
Fixed in [df83cb79bfa8].