def getSeriesRegistered(self,q_filter=Q(),distinct=True,counter=False,**kwargs):
series_set = Series.objects.filter(q_filter,eventregistration__registration__customer=self,**kwargs)<EOL>if not distinct:<EOL><INDENT>return series_set<EOL><DEDENT>elif distinct and not counter:<EOL><INDENT>return series_set.distinct()<EOL><DEDENT>elif '<STR_LIT>' in kwargs or '<STR_LIT>' in kwargs:<EOL><INDENT>return [str(x[<NUM_LIT:1>]) + '<STR_LIT>' + x[<NUM_LIT:0>].classDescription.title for x in Counter(series_set).items()]<EOL><DEDENT>else:<EOL><INDENT>return [str(x[<NUM_LIT:1>]) + '<STR_LIT>' + x[<NUM_LIT:0>].__str__() for x in Counter(series_set).items()]<EOL><DEDENT>
Return a list that indicates each series the person has registered for
and how many registrations they have for that series (because of couples).
This can be filtered by any keyword arguments passed (e.g. year and month).