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?
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