csrdelft / balins-adventure

We're going on an ADVENTURE!
3 stars 0 forks source link

Migration 0008 fails (blocks testing) #10

Closed ajrouvoet closed 9 years ago

ajrouvoet commented 9 years ago

~/repositories/pubcie/django.csrdelft.nl/src λ python manage.py migrate
/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django_tables2/tables.py:175: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9. attrs["base_columns"] = SortedDict(parent_columns)

/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django_tables2/tables.py:197: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9. attrs["base_columns"].update(SortedDict(cols))

Operations to perform: Synchronize unmigrated apps: staticfiles, rest_framework_swagger, permission, django_extensions, messages, django_tables2, rest_framework Apply all migrations: forum, sessions, admin, maaltijden, auth, contenttypes, mededelingen, base Synchronizing apps without migrations: Creating tables... Running deferred SQL... Installing custom SQL... Running migrations: Rendering model states... DONE Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying contenttypes.0002_remove_content_type_name.../home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/backends/mysql/base.py:124: Warning: Table 'mysql.column_stats' doesn't exist return self.cursor.execute(query, args)

OK Applying auth.0002_alter_permission_name_max_length... OK Applying auth.0003_alter_user_email_max_length... OK Applying auth.0004_alter_user_username_opts... OK Applying auth.0005_alter_user_last_login_null... OK Applying auth.0006_require_contenttypes_0002... OK Applying base.0001_initial... OK Applying base.0002_profiel_user... OK Applying base.0003_create_groepen... OK Applying base.0004_migration_user... OK Applying base.0005_make_profiel_and_groepen_more_flexible... OK Applying base.0006_data_verticale_leden...Verticale matching query does not exist. Lid 9999 has invalid verticale G OK Applying base.0007_remove_profiel_verticale... OK Applying base.0008_data_lichting_leden...Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/core/management/init.py", line 338, in execute_from_command_line utility.execute() File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/core/management/init.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/core/management/base.py", line 390, in run_from_argv self.execute(_args, _cmd_options) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/core/management/base.py", line 441, in execute output = self.handle(_args, _options) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 221, in handle executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/migrations/executor.py", line 110, in migrate self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/migrations/executor.py", line 147, in apply_migration state = migration.apply(state, schema_editor) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/migrations/migration.py", line 112, in apply operation.database_forwards(self.app_label, schema_editor, old_state, project_state) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/migrations/operations/special.py", line 181, in database_forwards self.code(from_state.apps, schema_editor) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/src/base/migrations/0008_data_lichting_leden.py", line 17, in create_lichtingen lidjaar=0 File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/models/manager.py", line 127, in manager_method return getattr(self.get_queryset(), name)(_args, *_kwargs) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/models/query.py", line 346, in create obj = self.model(kwargs) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/models/base.py", line 468, in init setattr(self, field.name, rel_obj) File "/home/arjen/repositories/pubcie/django.csrdelft.nl/.virtualenv/lib/python3.4/site-packages/django/db/models/fields/related.py", line 627, in set** self.field.rel.to._meta.object_name, ValueError: Cannot assign "": "Lichting.maker_user" must be a "Profiel" instance. (.virtualenv)