Read from PromotionLog.

This commit is contained in:
bsimpson63
2012-10-16 17:00:03 -04:00
parent 1faa705673
commit e5e7fc2c31
2 changed files with 2 additions and 1 deletions

View File

@@ -3148,6 +3148,7 @@ class PromoteLinkForm(Templated):
else g.default_sr)
# have the promo code wrap the campaigns for rendering
self.link = promote.editable_add_props(link)
self.promotion_log = promote.PromotionLog.get(link)
if not c.user_is_sponsor:
self.now = promote.promo_datetime_now().date()

View File

@@ -510,7 +510,7 @@ ${unsafe(js.use('sponsored'))}
<input id="promote_note" name="note" value="" type="text" size="40" />
<button type="submit">save</button>
<div class="notes">
%for line in getattr(thing.link, "promotion_log", []):
%for line in thing.promotion_log:
<p>${line}</p>
%endfor
</div>