Skip to content

Commit

Permalink
Merge pull request #1 from ervilis/fix_channel_promo_list
Browse files Browse the repository at this point in the history
Fixed error when removing slash at the end of the channel name on ChannelPromoList
  • Loading branch information
Thiago Avelino committed Dec 26, 2014
2 parents e036e62 + 8b7737e commit 49c5bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opps/promos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def template_name(self):
@property
def queryset(self):
site = get_current_site(self.request)
long_slug = self.kwargs['channel__long_slug'][:-1]
long_slug = self.kwargs['channel__long_slug'].strip('/')
get_object_or_404(Channel, long_slug=long_slug)
return Promo.objects.filter(
channel__long_slug=long_slug,
Expand Down

0 comments on commit 49c5bd1

Please sign in to comment.