@classmethod<EOL><INDENT>def field_from_django_field(cls, field_name, django_field, readonly):<DEDENT>
FieldWidget = cls.widget_from_django_field(django_field)<EOL>widget_kwargs = cls.widget_kwargs_for_field(field_name)<EOL>field = cls.DEFAULT_RESOURCE_FIELD(<EOL>attribute=field_name,<EOL>column_name=field_name,<EOL>widget=FieldWidget(**widget_kwargs),<EOL>readonly=readonly,<EOL>default=django_field.default,<EOL>)<EOL>return field<EOL>
Returns a Resource Field instance for the given Django model field.