fdfddf
parent
56ac1d3a9c
commit
0ca8f34856
|
@ -418,8 +418,8 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
|||
|
||||
@property
|
||||
@lazy
|
||||
def test(self):
|
||||
print(self.flags.order_by(Flag.created_utc))
|
||||
def ordered_flags(self):
|
||||
return self.flags.order_by(Flag.created_utc)
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
|
@ -489,7 +489,7 @@
|
|||
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
|
||||
<pre></pre>
|
||||
<ul style="padding-left:20px; margin-bottom: 0;">
|
||||
{% for f in p.flags %}
|
||||
{% for f in p.ordered_flags %}
|
||||
<li><a href="{{f.user.url}}">@{{f.user.username}}</a>: {{f.reason}}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue