Posts by Angelica Curtis • 11 points
2 posts
-
1
votes1
answer219
viewsA: Calculating a date inside the Model Django timedelta
I was able to solve it using pre-save Django Signals. What is expected is that when a new 'Teacher Progression', from data_progression, is set the value of 'data_prox_progression', counting 2 more…
-
0
votes1
answer219
viewsQ: Calculating a date inside the Model Django timedelta
I am declaring a function (data_prox_prog) to calculate a future date and store in the model, but it is not happening as expected. Follows code: class ProgressaoDocente(models.Model): servidor =…