Stop counting time in django
<p>I've got a problem with take constant value from this function:</p>

<pre><code>def get_time_left(self)
    now = timezone.now()
    time_left = self.deadline - now
    return time_left
</code></pre>

<p>self.deadline is value from model.</p>

<p>For example I want to take time_left from 15.00 2.09.2016, save it and use this value in another function, but when I try to do this, the value is always changing...</p>

<p>Maybe an easy workaround would be to have the value in the others function definition ? That way you are certain of what you send...</p>

<p>Yet, if you set the result of get_time_left() in a variable, it should not change...</p>

<p>More code would be helpfull indeed</p>

python django datetime timezone