def formfield(self, form_class=forms.CharField, **kwargs):
		defaults = {
			'required': False,
			'label': capfirst(self.verbose_name),
			'help_text': self.help_text
		}
		if self.has_default():
			defaults['initial'] = self.default
		defaults.update(kwargs)
		return form_class(**defaults)
Returns a form field capable of accepting values for the :class:`AttributeProxyField`.
dataset/ETHPy150Open ithinksw/philo/philo/models/fields/entities.py/AttributeProxyField.formfield