Created
January 24, 2013 17:50
-
-
Save evdb/4625704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(mzalendo-virtualenv)evdb@custard-2 ~/git/mzalendo_root/mzalendo/mzalendo $ ./manage.py migrate core | |
Running migrations for core: | |
- Migrating forwards to 0037_migrate_data_for_parliamentary_sessions. | |
> core:0034_auto__add_blank_trues | |
> core:0035_auto__add_parliamentarysession | |
> core:0036_auto__add_field_place_parliamentary_session | |
> core:0037_migrate_data_for_parliamentary_sessions | |
Saving Senate (Governmental) to the database | |
Saving National Assembly 2007-2013 to the database | |
Saving National Assembly 2013- to the database | |
Saving Senate 2013- to the database | |
Saving Traceback (most recent call last): | |
File "./manage.py", line 10, in <module> | |
execute_manager(settings) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager | |
utility.execute() | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv | |
self.execute(*args, **options.__dict__) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute | |
output = self.handle(*args, **options) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/management/commands/migrate.py", line 102, in handle | |
delete_ghosts = delete_ghosts, | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/__init__.py", line 202, in migrate_app | |
success = migrator.migrate_many(target, workplan, database) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/migrators.py", line 215, in migrate_many | |
result = migrator.__class__.migrate_many(migrator, target, migrations, database) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/migrators.py", line 284, in migrate_many | |
result = self.migrate(migration, database) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/migrators.py", line 121, in migrate | |
result = self.run(migration) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/migrators.py", line 95, in run | |
return self.run_migration(migration) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/migrators.py", line 77, in run_migration | |
migration_function() | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/south/migration/migrators.py", line 56, in <lambda> | |
return (lambda: direction(orm)) | |
File "/Users/evdb/git/mzalendo_root/mzalendo/mzalendo/core/migrations/0037_migrate_data_for_parliamentary_sessions.py", line 11, in forwards | |
call_command('core_create_parliamentary_sessions', commit=True, reverse=False) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/__init__.py", line 166, in call_command | |
return klass.execute(*args, **defaults) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute | |
output = self.handle(*args, **options) | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle | |
return self.handle_noargs(**options) | |
File "/Users/evdb/git/mzalendo_root/mzalendo/mzalendo/core/management/commands/core_create_parliamentary_sessions.py", line 135, in handle_noargs | |
maybe_save(place) | |
File "/Users/evdb/git/mzalendo_root/mzalendo/mzalendo/core/management/commands/core_create_parliamentary_sessions.py", line 27, in maybe_save | |
print >> sys.stderr, "Saving", o, "to the database" | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/db/models/base.py", line 377, in __str__ | |
return force_unicode(self).encode('utf-8') | |
File "/Users/evdb/git/mzalendo_root/mzalendo-virtualenv/lib/python2.7/site-packages/django/utils/encoding.py", line 71, in force_unicode | |
s = unicode(s) | |
File "/Users/evdb/git/mzalendo_root/mzalendo/mzalendo/core/models.py", line 491, in __unicode__ | |
session_suffix += " " + str(self.parliamentary_session.short_date_range()) | |
File "/Users/evdb/git/mzalendo_root/mzalendo/mzalendo/core/models.py", line 796, in short_date_range | |
if self.end_date and self.end_date.year != 9999: | |
AttributeError: 'str' object has no attribute 'year' | |
(mzalendo-virtualenv)evdb@custard-2 ~/git/mzalendo_root/mzalendo/mzalendo $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment