I see normal listboxes in http://localhost:8083/admin/shop/orderpayment/.../
> why? Some choices in database models must be evaluated "lazy" because the values can depend on other model or they are sometimes even stored in the database. Read Django Documentation, at least: https://docs.djangoproject.com/en/1.3/ref/models/fields/#choices "... note that choices can be any iterable object -- not necessarily a list or tuple. This lets you construct choices dynamically... " When all Django internals have been initialized you can evaluate it as list, e.g. list(that_function_or_expression_assigned_to_choices_in_model()) but do not evaluate it too early: in model definition, url config etc. It can be surely safe evaluated from views, middleware.. Django converts it also to list (or tuple?) at the right time. It need evaluate the expression only once. I am author of the last solution of this in Satchmo. More about boundary between possible and unpossible is in some Django tickets. On 20 říj, 01:32, gasphynx <[email protected]> wrote: > I'm using 0.9.2. I forgot what I needed this fixed for, doesn't seem > to be an issue anymore. > > -Sean > > On Sep 21, 8:13 pm, Chris Moffitt <[email protected]> wrote: > > > > > > > > > Which version of Satchmo are you using? > > > -Chris > > > On Wed, Sep 21, 2011 at 1:49 AM, gasphynx <[email protected]> wrote: > > > Based on what I see in the source the payment field should have > > > choices set to labelled_gateway_choices(), but instead it's equal to a > > > django.utils.functional.__proxy__ object. Why does this happen/how do > > > I fix it? > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Satchmo users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/satchmo-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
