from django.dispatch import receiver
from django.template.loader import render_to_string
from django.urls import reverse
from django.dispatch import receiver
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils.timezone import utc
from django.utils.translation import ugettext_lazy as _, override
import getpaid
from django.utils.timezone import utc
from django.utils.translation import ugettext_lazy as _, override
import getpaid
def get_absolute_url(self):
return reverse('funding_offer', args=[self.slug])
def get_absolute_url(self):
return reverse('funding_offer', args=[self.slug])
'is_current': self.is_current(),
'is_win': offer_sum >= self.target,
'missing': self.target - offer_sum,
'is_current': self.is_current(),
'is_win': offer_sum >= self.target,
'missing': self.target - offer_sum,