def add_keys(apps, schema_editor):
    """
    We can't import the Post model directly as it may be a newer
    version than this migration expects. We use the historical version.
    """
    Setting = apps.get_model('settings', 'Setting')
    key = ''
    try:
        key = 'INVITATION_FORMAT_STRING'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title=' کد دعوت', key=key, value=
            'شما می توانید با کد {{}} به برنامه بپیوندید.', value_type='s',
            is_show=False, is_variable_in_home=True)
