#NEWLINE# def create_questionlocale( apps , schema_editor ) : #NEWLINE# #INDENT# Product = apps . get_model ( 'products' , 'Product' ) #NEWLINE# QuestionLocale = apps . get_model ( 'questions' , 'QuestionLocale' ) #NEWLINE# ( p , created ) = Product . objects . get_or_create ( slug = 'ios' , defaults = { #NEWLINE# #INDENT# 'title' : 'Firefox for iOS' , #NEWLINE# 'description' : 'Firefox for iPhone, iPad and iPod touch devices' , #NEWLINE# 'display_order' : 0 , #NEWLINE# 'visible' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( ql , created ) = QuestionLocale . objects . get_or_create ( locale = 'en-US' ) #NEWLINE# ql . products . add ( ql )