def get_strata(creel_run):
    """Given a creel_run, return a list of tuples that represent the rows
    in the Strata table - each row contains the strata label, and foreign
    keys to the corresponding creel_run, season, space, daytype, period and
    fishing mode.

    Arguments:
    - `creel_run`: An FN011 creel_run object.

    """

    all_strata = []
    modes = creel_run.creel.modes.all()
    spots = creel_run.creel.spatial_strata.all()
    seasons = creel_run.creel.seasons.all()

    for season in seasons:
        daytypes = season.daytypes.all()
        for spot in spots:
            for daytype in daytypes:
                periods = daytype.periods.all()
                for period in periods:
                    for mode in modes:
                        strata = "{}_{}{}_{}_{}".format(
                            season.ssn, daytype.dtp, period.prd, spot.space, mode.mode
                        )
                        all_strata.append(
                            (
                                creel_run.id,
                                strata,
                                season.id,
                                spot.id,
                                daytype.id,
                                period.id,
                                mode.id,
                            )
                        )
    return all_strata