def _get_privacy_fields(privacy_level):
 data = {}
 for field in UserProfilePrivacyModel._meta.fields:
  data[field.name] = privacy_level
 data['privacy_tshirt'] = PRIVILEGED
 return data

def _get_privacy_fields ( privacy_level ) : data = { } for field in UserProfilePrivacyModel . _meta . fields : data [ field . name ] = privacy_level data [ 'privacy_tshirt' ] = PRIVILEGED return data
helper which returns a dict with privacy fields set to privacy_level .