def lookup_foreign_key_field(self, options, field_name):
        if '__' in field_name:
            fk_name, field_name = field_name.split('__', 1)
            fields = [f for f in options.fields if f.name == fk_name]
            if len(fields) > 0:
                field_class = fields[0]
            else:
                raise FieldError('No field %s in %s' % (fk_name, options))
            foreign_model_options = field_class.rel.to._meta
            return self.lookup_foreign_key_field(foreign_model_options, field_name)
        else:
            return options.get_field_by_name(field_name)
Query or modify the options of the specified pane.
dataset/ETHPy150Open gerry/django-jqgrid/jqgrid.py/JqGrid.lookup_foreign_key_field--crossover with--dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py/Panedwindow.pane