<s> from optparse import make_option <EOL> from django . core . management . base import AppCommand <EOL> from django . db import connections , DEFAULT_DB_ALIAS <EOL> from django_reset . management . sql import sql_reset <EOL> class Command ( AppCommand ) : <EOL> help = "<STR_LIT>" <EOL> option_list = AppCommand . option_list + ( <EOL> make_option ( '<STR_LIT>' , action = '<STR_LIT:store>' , dest = '<STR_LIT>' , <EOL> default = DEFAULT_DB_ALIAS , help = '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> ) <EOL> output_transaction = True <EOL> def handle_app ( self , app , ** options ) : <EOL> return u'<STR_LIT:\n>' . join ( sql_reset ( app , self . style , connections [ options . get ( '<STR_LIT>' ) ] ) ) . encode ( '<STR_LIT:utf-8>' ) </s>
