Modify

Ticket #314 (closed defect: fixed)

Opened 5 years ago

Last modified 5 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:

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

comment:1 Changed 5 years ago by andrew

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

Bugs in 0.7 already? Well done.

Fixed in [df83cb79bfa8].

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.