.
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ class QuestionNote(models.Model):
|
||||
# return reverse('rapids:question_detail', kwargs={'pk': self.pk})
|
||||
|
||||
def __str__(self):
|
||||
return "{} [{}] {} / {}".format(self.author, self.created_on, self.note_type, self.note)
|
||||
return "{}: {} [{}] {} / {}".format(self.content_type, self.author, self.created_on, self.note_type, self.note)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return "/"
|
||||
|
||||
@@ -70,12 +70,11 @@
|
||||
<ul class="notes">
|
||||
{% for note in question.anon_notes.all %}
|
||||
<li {% if note.complete %}class='complete' {% endif %}>
|
||||
{{note.user_author}}
|
||||
{{ note.created_on }} by
|
||||
{% if note.user_author %}
|
||||
{{note.user_author}}
|
||||
{% else %}
|
||||
{{ note.author }} (unregistered) [{{ note.user_author }}]:
|
||||
{{ note.author }} [unregistered]
|
||||
{% endif %}
|
||||
{{note.note_type}} / {{ note.note }}
|
||||
{% if not note.complete %}
|
||||
|
||||
Reference in New Issue
Block a user