@classmethod
def has_field(cls, field_name):
    """
        Return True if the given field name is an allowed field for this model
        """
    return field_name == 'pk' or field_name in cls._fields
