Giovanni Di Milia
Giovanni Di Milia

Reputation: 14041

Django: which is the widget that renders the foreign key in the admin page?

Which is the widget that renders the foreign key in the admin site?

I saw that there is a widget called RelatedFieldWidgetWrapper (that print only the "+" icon) and another for the select, but I suppose that there is a widget that call both to render the entire field.

Thanks

Upvotes: 0

Views: 1514

Answers (1)

Dmitry Shevchenko
Dmitry Shevchenko

Reputation: 32404

RelatedFieldWidgetWrapper just wraps default widget, in this case Select widget.

Upvotes: 1

Related Questions