0
Django forms choicefield not update automatically
Django 1.5.5 https://code.sololearn.com/chhrwnt1A2m5/?ref=app The self.fields['day'] no update the date, the date.strftime(). No create new data datetime. Update: the problem is the with the method used to calculate the date. When use the generator the date in the loop for, rrule call **rule RRULE_OPTIONS. I add the the secctions code where call datetime.now(). But no taked the server date or change in the curren date.
3 Respuestas
0
Hi Jose.
May you tell your problem alittle more clear.
If you want to say why the choice filed items wont be updated its because there is no request going to backEnd to see whats up there so you should use ajax or websockets for that
0
Hi alireza, thanks.
I have updated the code and the question
0
hi everyone I found the problem, the módulo rrule have a bug to try read clock of the server in this versión. other focused is use pandas, but to my implementation is a problem add a new package in production.
develop a new funtion to calculate the date day that is working. thanks so much