Django forms cache populating form

41 views
Skip to first unread message

Gabriel Carneiro Novaes

unread,
Feb 14, 2012, 1:30:43 PM2/14/12
to django...@googlegroups.com

i'm populating the choices of a form in django,

The problem is that when i see it in the browser, the year list is fine according to the database, but when i change some date in database, the year select list doesn't update.


I try this code, but I get the error

get_prices() takes no arguments (1 given)

how can I sove this?

Tom Evans

unread,
Feb 14, 2012, 2:45:31 PM2/14/12
to django...@googlegroups.com

In python, object instance methods always have at least one argument -
'self', a reference to the current object instance. Either add the
argument, or change the method so that it is defined as a function
outside of the class.

Cheers

Tom

Reply all
Reply to author
Forward
0 new messages