Update readthedocs/oauth/migrations/0014_remove_remoterepository_project.py
@@ -6,7 +6,7 @@ from django.db import migrations
def migrate_data(apps, schema_editor):
RemoteRepository = apps.get_model('oauth', 'RemoteRepository')
queryset = RemoteRepository.objects.filter(project__isnull=False).select_related('project')
- for rr in queryset:
+ for rr in queryset.iterator():
rr.project.remote_repository = rr
rr.save()
