def get_model_field(model, name):
    """
    Gets a field from a Django model.

    :param model: A Django model, this should be the class itself.
    :param name:  A Django model's field.
    :return:  The field from the model, a subclass of django.db.models.Model
    """
    return model._meta.get_field(name)