Hi,

Is it expected that fields do not behave correctly for list operations?.

For reference:

    f1 = db.auth_user.first_name
    f2 = db.auth_user.last_name
    x = [ f1, f2 ]
    fx = db.auth_user.email

    f1 in x > True (ok)
    f2 in x > True (ok)
    fx in x > True (WRONG)

    x.remove(f2)
    x[0].name > 'last_name' (WRONG)

I believe fields fail because of Expression.__eq__ (superclass of Field), 
which returns Query objects.

Can we do something to fix this?, or is it just not possible?.

Thanks,

   Carlos

Reply via email to