From 2ec20232c29c22825d9e73024592d45955e91ba5 Mon Sep 17 00:00:00 2001 From: Michael Barrientos Date: Sat, 27 Sep 2014 23:55:52 -0700 Subject: [PATCH] Add methods and members to ManyToManyField --- .../django_db_models_fields_related.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/pylint_django/transforms/transforms/django_db_models_fields_related.py b/pylint_django/transforms/transforms/django_db_models_fields_related.py index 2f804710..038d7b13 100644 --- a/pylint_django/transforms/transforms/django_db_models_fields_related.py +++ b/pylint_django/transforms/transforms/django_db_models_fields_related.py @@ -5,3 +5,36 @@ class ManyToManyField(ManyToManyFieldOriginal, QuerySet): def __init__(self, to, **kwargs): ManyToManyFieldOriginal.__init__(to, **kwargs) + self.model = None + self.query_field_name = '' + self.core_filters = {} + self.instance = None + self.symmetrical = None + self.source_field = None + self.source_field_name = '' + self.target_field_name = '' + self.reverse = None + self.through = None + self.prefetch_cache_name = None + self.related_val = None + + def get_queryset(self): + pass + + def get_prefetch_queryset(self, instances): + pass + + def add(self, *objs): + pass + + def create(self, **kwargs): + pass + + def get_or_create(self, **kwargs): + pass + + def remove(self, *objs): + pass + + def clear(self): + pass