Skip to content

Instantly share code, notes, and snippets.

@saulshanabrook
Created January 22, 2015 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saulshanabrook/89eaf258e59ba27395b0 to your computer and use it in GitHub Desktop.
Save saulshanabrook/89eaf258e59ba27395b0 to your computer and use it in GitHub Desktop.
Operations to perform:
Synchronize unmigrated apps: floppyforms, rest_framework_bulk, admin_export, impersonate, rest_framework, localflavor, rosetta, django_filters, naviance_sso, dajax, ldap_groups, customers, grappelli, compressor, djangobower, raven_compat, dajaxice, pagination, ckeditor, scaffold_report, autocomplete_light, djcelery, widget_tweaks, responsive_dashboard, massadmin, constance
Apply all migrations: administration, benchmark_grade, counseling, discipline, attendance, schedule, custom_field, contenttypes, simple_import, sis, sessions, reversion, work_study, auth, admissions, report_builder, standard_test, engrade_sync, database, admin, alumni, grades, default, benchmarks, volunteer_track
Synchronizing apps without migrations:
Creating tables...
Creating table ldap_groups_ldapgroup_groups
Creating table ldap_groups_ldapgroup
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table djcelery_intervalschedule
Creating table djcelery_crontabschedule
Creating table djcelery_periodictasks
Creating table djcelery_periodictask
Creating table djcelery_workerstate
Creating table djcelery_taskstate
Creating table responsive_dashboard_userdashboard
Creating table responsive_dashboard_userdashlet
Creating table responsive_dashboard_dashletsetting
Installing custom SQL...
Installing indexes...
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying administration.0001_initial... OK
Applying sis.0001_initial... OK
Applying schedule.0001_initial... OK
Applying schedule.0002_auto_20140716_1655... OK
Applying schedule.0003_courseenrollment_is_active... OK
Applying schedule.0004_auto_20150102_1238... OK
Applying sis.0002_percoursesectioncohort... OK
Applying database.0001_initial... OK
Applying sis.0003_auto_20140717_1002... OK
Applying standard_test.0001_initial... OK
Applying admissions.0001_initial... OK
Applying admissions.0002_auto_20140716_1655...Traceback (most recent call last):
File "/opt/sword/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 161, in handle
executor.migrate(targets, plan, fake=options.get("fake", False))
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 68, in migrate
self.apply_migration(migration, fake=fake)
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 102, in apply_migration
migration.apply(project_state, schema_editor)
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/migration.py", line 108, in apply
operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/operations/fields.py", line 37, in database_forwards
field,
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/schema.py", line 365, in add_field
definition, params = self.column_sql(model, field, include_default=True)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/schema.py", line 125, in column_sql
default_value = self.effective_default(field)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/schema.py", line 188, in effective_default
default = field.get_db_prep_save(default, self.connection)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py", line 1735, in get_db_prep_save
return self.related_field.get_db_prep_save(value, connection=connection)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 627, in get_db_prep_save
prepared=False)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 619, in get_db_prep_value
value = self.get_prep_value(value)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 1601, in get_prep_value
return int(value)
TypeError: int() argument must be a string or a number, not 'GradeLevel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment