﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23018	"on migrate command: ProgrammingError: column ""district_id"" of relation ""data_entry"" already exists"	jonathan.strong@…	nobody	"Got this error when I tried to run the initial makemigrations command for a project. I had been using South and was following documentation for upgrading to 1.7. Not sure what is happening. I noticed that prior to this error occurring some other {{{index_together}}} requirements had been accomplished successfully. Also it was on its 3rd migrations file for the app ... 001_initial and 002_auto had run successfully. I don't see any way to figure out which line in my models.py this was referencing.

{{{
Traceback (most recent call last):
  File ""C:\Sites\votecruncher\manage.py"", line 10, in <module>
    execute_from_command_line(sys.argv)
  File ""C:\Python\lib\site-packages\django\core\management\__init__.py"", line 385, in execute_from_command_line
    utility.execute()
  File ""C:\Python\lib\site-packages\django\core\management\__init__.py"", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""C:\Python\lib\site-packages\django\core\management\base.py"", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""C:\Python\lib\site-packages\django\core\management\base.py"", line 337, in execute
    output = self.handle(*args, **options)
  File ""C:\Python\lib\site-packages\django\core\management\commands\makemigrations.py"", line 115, in handle
    self.write_migration_files(changes)
  File ""C:\Python\lib\site-packages\django\core\management\commands\makemigrations.py"", line 131, in write_migration_files
    self.stdout.write(""    - %s\n"" % operation.describe())
  File ""C:\Python\lib\site-packages\django\db\migrations\operations\models.py"",
line 291, in describe
    return ""Alter %s for %s (%s constraints)"" % (self.self.option_name, self.name, len(self.index_together))
AttributeError: 'AlterIndexTogether' object has no attribute 'self'
}}}"	Bug	closed	Migrations	1.7-rc-1	Normal	duplicate			Unreviewed	0	0	0	0	0	0
