def get_initial_word_counts_dict(user, start_date):

    def add_wp(wcd, wdict, strength, due_date):
        if (start_date is not None) and (due_date < start_date):
            ask_date = start_date
        else:
            ask_date = due_date
        incr_wcd(wcd, wdict, strength, due_date, ask_date, 1)

    wcd = {}
    wdicts = WDict.objects.filter(user=user, deleted=False)
    for wdict in wdicts:
        word_pairs = WordPair.objects.filter(wdict=wdict,
                                             deleted=False)
        for wp in word_pairs:
            add_wp(wcd, wdict, wp.strength1, wp.date1)
            add_wp(wcd, wdict, wp.strength2, wp.date2)
    return wdicts, wcd
Shortcut for creating a cell that is a link. The URL is the result of calling `get_absolute_url()` on the object.
dataset/ETHPy150Open hcs42/ExponWords/models.py/get_initial_word_counts_dict--crossover with--dataset/ETHPy150Open TriOptima/tri.table/lib/tri/table/__init__.py/Column.link