[finish #29411521] added site to url
parent
0ffd89e072
commit
0f1bfaebc4
|
@ -9,6 +9,7 @@ from notification import models as notification
|
|||
from django.db import models
|
||||
from django.db.models import Q, get_model
|
||||
from django.contrib.auth.models import User
|
||||
from django.contrib.sites.models import Site
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
@ -211,7 +212,7 @@ class Campaign(models.Model):
|
|||
self.save()
|
||||
|
||||
ungluers = self.work.wished_by()
|
||||
notification.queue(ungluers, "wishlist_active", {'campaign':self, 'active_claim':active_claim}, True)
|
||||
notification.queue(ungluers, "wishlist_active", {'campaign':self, 'active_claim':active_claim, 'site': Site.objects.get_current()}, True)
|
||||
return self
|
||||
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ Congratulations, you wished for it, and now there is an active Campaign for {{ c
|
|||
|
||||
You can help!
|
||||
|
||||
Pledge toward ungluing. {% url pledge work_id=campaign.work.id %}
|
||||
Pledge toward ungluing. {{ site }}{% url pledge work_id=campaign.work.id %}
|
||||
|
||||
Tell your friends -- there are handy share options on the campaign page. There's even a widget you can put on your blog or home page. {% url work campaign.work.id %}
|
||||
Tell your friends -- there are handy share options on the campaign page. There's even a widget you can put on your blog or home page. {{ site }}{% url work campaign.work.id %}
|
||||
|
||||
Join the discussion: share why you love {{ campaign.work.title }} and the world will too. {% url work campaign.work.id %}?tab=2
|
||||
|
||||
|
|
Loading…
Reference in New Issue