def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)
    widget = get_fk_raw_id_widget(GeoRegion, admin.site, field_name='id')
    self.fields['_ref_node_id'] = forms.IntegerField(required=False, label=_('Relative to'), widget=widget)
def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)
    widget = get_fk_raw_id_widget(GeoRegion, admin.site, field_name='id')
    self.fields['_ref_node_id'] = forms.IntegerField(required=False, label=_('Relative to'), widget=widget)