Fix a typo in consolidate_reports migration
authorJessica Tallon <tsyesika@tsyesika.se>
Mon, 29 Feb 2016 18:17:42 +0000 (18:17 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Mon, 29 Feb 2016 18:17:42 +0000 (18:17 +0000)
mediagoblin/db/migrations.py

index 78ef4832748788023f423313ff72baa8ffa364f8..257da6eef581fb292cfc19547073047acfae4a94 100644 (file)
@@ -2042,7 +2042,7 @@ def consolidate_reports(db):
     # Iterate through the Media Reports and do the save as above.
     for media_report in db.execute(media_report_table.select()):
         # If the media report is None then it's been deleted nd we should skip
-        if media_report.media_entry_is is None:
+        if media_report.media_entry_id is None:
             continue
 
         # Find Mr. GMR :)