django-pg-fts icon indicating copy to clipboard operation
django-pg-fts copied to clipboard

Migrations are failing with Django 1.8

Open nixilla opened this issue 9 years ago • 2 comments

Relevant commit in Django project https://github.com/claudep/django/commit/a159b1facd222c20dde12f1e0117643af528d511

I'm getting:

File "/home/vagrant/project/venv/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 115, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/home/vagrant/project/venv/local/lib/python2.7/site-packages/pg_fts/migrations.py", line 151, in database_forwards
    model = from_state.render().get_model(app_label, self.name)
AttributeError: 'ProjectState' object has no attribute 'render'

nixilla avatar Nov 11 '15 15:11 nixilla

It would be really cool to see this fix relased soon :)

lnagel avatar Dec 04 '15 15:12 lnagel

i ran into this on django 1.11 as well when trying to sqlmigrate. When I ran the regular migration it worked.

jakeseaton avatar Jan 19 '19 17:01 jakeseaton