def get_field_queryset(self, db, db_field, request):
        related_admin = self.admin_site._registry.get(db_field.rel.to, None)
        if related_admin is not None:
            ordering = related_admin.get_ordering(request)
            if ordering is not None and ordering != ():
                return db_field.rel.to._default_manager.using(db).order_by(*ordering).complex_filter(db_field.rel.limit_choices_to)
        return None
Sets the weights of the optimizer, from Numpy arrays.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/contrib/admin/options.py/BaseModelAdmin.get_field_queryset--crossover with--dataset/ETHPy150Open fchollet/keras/keras/optimizers.py/Optimizer.set_weights