def get_series(model, extra_field=None, source=None, **filters):
    extra = () if extra_field is None else (extra_field,)
    # Put a slice on it so we get more than 10 (the default), but limit to 365.
    qs = (model.search().order_by('-date').filter(**filters)
          .values_dict('date', 'count', *extra))
    if source:
        qs = qs.source(source)
    for val in qs[:365]:
        # Convert the datetimes to a date.
        date_ = parse(val['date'][0]).date()
        rv = dict(count=val['count'][0], date=date_, end=date_)
        if source:
            rv['data'] = extract(val[source])
        elif extra_field:
            rv['data'] = extract(val[extra_field])
        yield rv
**DEPRECATED**: Get status information from the last operation.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/views.py/get_series--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/database.py/Database.last_status