docs: def add_custom_fields(cls, *args, **kw):
          """ Add any custom fields defined in the configuration.
          """
          for factory in config.custom_field_factories:
              for field in factory():
                  setattr(cls, field.name, field)