def set_review_unavailable(apps, schema_editor):
 DocumentSpamAttempt = apps.get_model(u'wiki', u'DocumentSpamAttempt')
 to_set = DocumentSpamAttempt.objects.filter(data__isnull=True, review=NEEDS_REVIEW)
 to_set.update(review=REVIEW_UNAVAILABLE)

def set_review_unavailable ( apps , schema_editor ) : DocumentSpamAttempt = apps . get_model ( u'wiki' , u'DocumentSpamAttempt' ) to_set = DocumentSpamAttempt . objects . filter ( data__isnull = True , review = NEEDS_REVIEW ) to_set . update ( review = REVIEW_UNAVAILABLE )
for historic documentspamattempt .