def version(modfile):
    import re
    with open(modfile) as fh:
        for line in fh:
            m = re.search(r"^__version__ = '([^']+)'$", line)
            if m:
                return m.group(1)
    raise Exception('No __version__ string found in {fn}'.format(fn=modfile))
If we specify fk_name, but it isn't a ForeignKey from the child model
dataset/ETHPy150Open todddeluca/daemoncmd/setup.py/version--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/inline_formsets/tests.py/InlineFormsetFactoryTest.test_fk_name_not_foreign_key_field_from_child