jet-admin / jet-bridge

Protected member accessed from outside the class PYL-W0212
Bug risk
Minor
4 months ago4 years old
Access to a protected member _limit of a client class
369            if count_rows is not None:
370                response['count'] = count_rows
371
372            limit = queryset._limit373            if limit:
374                response['limit'] = limit
375
Access to a protected member _meta of a client class
288        }
289
290    def get_model_fields(self, model):
291        fields = model._meta.get_fields()292
293        def filter_fields(x):
294            if any(map(lambda rel: isinstance(x, rel), [
Access to a protected member _meta of a client class
284        if not Model or not hasattr(Model, '_meta'):
285            return
286        return {
287            'model': Model._meta.db_table,288        }
289
290    def get_model_fields(self, model):
Access to a protected member _meta of a client class
223        }
224
225        if hasattr(model._meta, 'ordering') and model._meta.ordering:
226            ordering = model._meta.ordering[0]227            desc = ordering.startswith('-')
228            field_name = ordering[1:] if desc else ordering
229
Access to a protected member _meta of a client class
222            'fields': list(map(lambda field: self.serialize_field(field), fields))
223        }
224
225        if hasattr(model._meta, 'ordering') and model._meta.ordering:226            ordering = model._meta.ordering[0]
227            desc = ordering.startswith('-')
228            field_name = ordering[1:] if desc else ordering