django.utils.timezone.tznow - python examples

Here are the examples of the python api django.utils.timezone.tznow taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

0 View Complete Implementation : models.py
Copyright MIT License
Author : mastizada
    def save(self, *args, **kwargs):
        if self.status == "sent" and not self.delivered_at:
            self.delivered_at = tznow()
        super(OutgoingSMS, self).save(*args, **kwargs)