Skip to content

Commit

Permalink
Merge pull request #28 from mbarrien/manytomany-methods
Browse files Browse the repository at this point in the history
Add methods and members to ManyToManyField
  • Loading branch information
carlio committed Oct 1, 2014
2 parents 6c31f07 + 2ec2023 commit 1c8b2b4
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c8b2b4

Please sign in to comment.