<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def model_file_fields(self, model):
 """ Generator yielding all instances of FileField and its subclasses of a model. """

        for field in model._meta.fields:
            if isinstance(field, models.FileField):
                yield field