def first_field(self):
        try:
            fieldset_name, fieldset_options = self.fieldsets[0]
            field_name = fieldset_options['fields'][0]
            if not isinstance(field_name, basestring):
                field_name = field_name[0]
            return self.form[field_name]
        except (KeyError, __HOLE__):
            pass
        try:
            return iter(self.form).next()
        except StopIteration:
            return None
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/admin/helpers.py/AdminForm.first_field