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