PromoteLinkForm cleanup.

This commit is contained in:
Brian Simpson
2013-08-08 13:08:09 -04:00
parent 0671511de9
commit 85c80a7d55
2 changed files with 3 additions and 3 deletions

View File

@@ -3318,7 +3318,7 @@ class PromoteLinkForm(Templated):
def setup(self, link, listing):
self.bids = []
if c.user_is_sponsor:
self.author = Account._byID(link.author_id)
self.author = Account._byID(link.author_id, data=True)
try:
bids = bidding.Bid.lookup(thing_id=link._id)
except NotFound:

View File

@@ -346,14 +346,14 @@ ${self.javascript_setup()}
<input id="no_targeting" class="nomargin"
type="radio" value="none" name="targeting"
onclick="r.sponsored.targeting_off()"
checked="checked" />
checked="checked">
${_("no targeting (displays site-wide)")}
</label>
<br />
<label>
<input id="targeting" class="nomargin"
type="radio" value="one" name="targeting"
onclick="r.sponsored.targeting_on()" />
onclick="r.sponsored.targeting_on()">
${_("enable targeting (runs on a specific subreddit)")}
</label>