Commit d22b4433 authored by Joshua Son's avatar Joshua Son

Other: general commit

parents f1564063 bb9901c5
......@@ -2,13 +2,11 @@
<h2>ANNOUNCEMENTS: </h2>
{% for announcement in announcements%}
<p><b>{{announcement.announcement_title}}</b> by {{announcement.author}} dated {{announcement.pub_date}}</p>
<p><b>{{announcement.announcement_title}}</b> by {{announcement.author.first_name}} {{announcement.author.last_name}} dated {{announcement.pub_date}}</p>
<p>{{announcement.announcement_body}}</p>
<p>{% include "reactions_list.html" with reactions=announcement.reaction_list %}</p>
{{ value|linebreaks }}
{% endfor %}
</p>
\ No newline at end of file
# Generated by Django 3.2.12 on 2022-04-06 05:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assignments', '0008_alter_assignment_assignment_passing_score'),
]
operations = [
migrations.AlterField(
model_name='assignment',
name='assignment_passing_score',
field=models.IntegerField(),
),
]
......@@ -9,7 +9,7 @@ class Assignment(models.Model):
assignment_name = models.CharField(max_length=100)
assignment_description = models.CharField(max_length=1000)
assignment_max_points = models.IntegerField(default=0)
assignment_passing_score = models.IntegerField(editable=False)
assignment_passing_score = models.IntegerField(editable=True)
assignment_course = models.ForeignKey('Course', on_delete=models.CASCADE, blank=True, null= True)
def __str__(self):
......
......@@ -2,13 +2,13 @@
<p>
{% for post in posts %}
<p><b>{{post.post_title}}</b> by {{post.author}} dated {{post.pub_date}}</p>
<p><b>{{post.post_title}}</b> by {{post.author.first_name}} {{post.author.last_name}} dated {{post.pub_date}}:</p>
<p> {{ post.post_body }} </p>
{% if post.reply_chain != NULL %}
<p> {% include "replychain_listing.html" with reply=post.reply_chain %} </p>
{% endif %}
{{ value|linebreaks }}
<br>
{% endfor %}
</p>
\ No newline at end of file
<p><i>Reply by {{reply.author}} dated {{reply.pub_date}}</i></p>
<p>
<i> Reply by {{post.author.first_name}} {{post.author.last_name}} dated {{reply.pub_date}}: </i>
</p>
<p>{{reply.reply_body}}</p>
{% if reply.reply_chain != NULL %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment