##// END OF EJS Templates
Show only sections in the image tags list in random images
neko259 -
r1257:ff69f54a default
parent child Browse files
Show More
@@ -225,3 +225,6 b' class Thread(models.Model):'
225 225
226 226 def get_absolute_url(self):
227 227 return self.get_opening_post().get_absolute_url()
228
229 def get_required_tags(self):
230 return self.get_tags().filter(required=True)
@@ -19,7 +19,7 b''
19 19 {% with image.get_random_associated_post as post %}
20 20 <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a>
21 21 <div>
22 {% for tag in post.get_thread.tags.all %}
22 {% for tag in post.get_thread.get_required_tags.all %}
23 23 {% autoescape off %}
24 24 {{ tag.get_view }}{% if not forloop.last %},{% endif %}
25 25 {% endautoescape %}
General Comments 0
You need to be logged in to leave comments. Login now