Skip to content
Snippets Groups Projects
Commit 8364d4b8 authored by root's avatar root
Browse files

Bug in subs

parent 7fcebda6
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -24,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Provided by secure_settings
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
# PDB debugger option
POST_MORTEM = True
......
......@@ -176,6 +176,8 @@ def generate_subject_row(sub, full=False):
sub.subject_new.shortcode if not full else sub.subject_new.name)
elif sub.subject_new and not sub.subject_old:
subject = "<strong>{}</strong>".format(sub.subject_new.shortcode if not full else sub.subject_new.name)
elif not sub.subject_new and not sub.subject_old:
subject = ""
else:
subject = "<strong>{}</strong>".format(sub.subject_old.shortcode if not full else sub.subject_old.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment