<s> from __future__ import unicode_literals <EOL> from django . conf import settings <EOL> from django . db import models , migrations , connection <EOL> def grant_permissions ( apps , schema_editor ) : <EOL> cursor = connection . cursor ( ) <EOL> cursor . execute ( '<STR_LIT>' <EOL> '<STR_LIT>' % settings . DB_PUBLIC_ROLE ) <EOL> cursor . execute ( '<STR_LIT>' <EOL> '<STR_LIT>' % settings . DB_PUBLIC_ROLE ) <EOL> cursor . execute ( '<STR_LIT>' <EOL> '<STR_LIT>' % settings . DB_PUBLIC_ROLE ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( grant_permissions , reverse_code = migrations . RunPython . noop ) , <EOL> ] </s>
