@receiver(post_migrate)
def setup_lang(sender, **kwargs):
 if (sender.label == u'lang'):
  with transaction.atomic():
   Language.objects.setup(False)

@ receiver ( post_migrate ) def setup_lang ( sender , ** kwargs ) : if ( sender . label == u'lang' ) : with transaction . atomic ( ) : Language . objects . setup ( False )
hook for creating basic set of languages on database migration .