>>> class foo1(): ... def __init__(self, a, b): ... mod = a ... exc = b ... >>> class foo2(foo1): ... class Meta: ... model = super(mod) ... exclude = super(exc) ... Traceback (most recent call last): File "", line 1, in File "", line 2, in foo2 File "", line 3, in Meta NameError: name 'mod' is not defined