Ticket #314 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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:


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>
  File "/home/bryan/.local/lib/python2.6/site-packages/django/core/management/__init__.py", line 439, in execute_manager
  File "/home/bryan/.local/lib/python2.6/site-packages/django/core/management/__init__.py", line 380, in execute
  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

Change History

comment:1 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed

Bugs in 0.7 already? Well done.

Fixed in [df83cb79bfa8].

Note: See TracTickets for help on using tickets.