(apps, schema_editor)
Change previously quarantined posts to DEFAULT
Change previously quarantined posts to DEFAULT
Change previously quarantined posts to DEFAULT
def change_quar(apps, schema_editor):
    """
    Change previously quarantined posts to DEFAULT
    """
    Post = apps.get_model('forum', 'Post')
    SUSPECT = 3
    posts = Post.objects.filter(spam=SUSPECT)

    # Change spam state
    for post in posts:
        post.spam = Post.DEFAULT
        post.save()
def change_quar ( apps , schema_editor ) : Post = apps . get_model ( 'forum' , 'Post' ) SUSPECT = 3 posts = Post . objects . filter ( spam = SUSPECT ) # Change spam state for post in posts : post . spam = Post . DEFAULT post . save ( )