Exemple #1
0
def get_translationexercise_category(**kwargs):
    return get_model_for_kwarg(TranslationExerciseCategory, 'category', 'pk', **kwargs)
Exemple #2
0
def get_language(**kwargs):
    return get_model_for_kwarg(Language, 'language', 'slug', **kwargs)
Exemple #3
0
def get_user(**kwargs):
    return get_model_for_kwarg(settings.AUTH_USER_MODEL, 'translator', 'username', **kwargs)
Exemple #4
0
def get_translationexercise_category(**kwargs):
    return get_model_for_kwarg(TranslationExerciseCategory, 'category', 'pk',
                               **kwargs)
Exemple #5
0
def get_translationexercise(**kwargs):
    return get_model_for_kwarg(TranslationExercise, 'exercise', 'slug', **kwargs)
Exemple #6
0
def get_language(**kwargs):
    return get_model_for_kwarg(Language, 'language', 'slug', **kwargs)
Exemple #7
0
def get_user(**kwargs):
    return get_model_for_kwarg(settings.AUTH_USER_MODEL, 'translator',
                               'username', **kwargs)
Exemple #8
0
def get_translationexercise(**kwargs):
    return get_model_for_kwarg(TranslationExercise, 'exercise', 'slug',
                               **kwargs)
Exemple #9
0
def get_translationexercise_category(**kwargs):
    return get_model_for_kwarg(TranslationExerciseCategory, "category", "pk", **kwargs)
Exemple #10
0
def get_user(**kwargs):
    return get_model_for_kwarg(settings.AUTH_USER_MODEL, "translator", "username", **kwargs)
Exemple #11
0
def get_language(**kwargs):
    return get_model_for_kwarg(Language, "language", "slug", **kwargs)
Exemple #12
0
def get_translationexercise(**kwargs):
    return get_model_for_kwarg(TranslationExercise, "exercise", "slug", **kwargs)