Got an problem that I am struggling to solve..
I have:
class Address(models.Model):
name = models.CharField()
event_date = models.DateTime()
event1, 25/01/2015
event2, 27/01/2015
event3, 05/02/2015
and so on…
what I am trying to figure out is, how to calculate the days between each
event.
s
I am working on a problem that I am trying to figure out, not having much
luck so far...
I have a model, basic for this example:
class Event(models.Model):
name = models.Charfield(max_length=10)
event_date = models.DateTime()
I am trying to workout how I can calculate the number of days bet
2 matches
Mail list logo