On 2/3/06, sam <[EMAIL PROTECTED]> wrote:
> My bar() is a pure function defined outside all model classes but that
> gave me the error. (If I defined it inside the same class from which it
> was called, then it's OK). How do I deal with this?

This is a bit of annoying magic Django currently does, but it'll be
gone in the next version. To solve your problem, put the following in
your model's "class META":

    module_constants = {'bar': bar}

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to