SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 90b4e8c5 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Minor update on production

parent 9146157a
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,9 @@ class ProductionEventManager(models.Manager): ...@@ -23,6 +23,9 @@ class ProductionEventManager(models.Manager):
def get_my_events(self, production_user): def get_my_events(self, production_user):
return self.filter(noted_by=production_user) return self.filter(noted_by=production_user)
def all_without_duration(self):
return self.filter(duration__isnull=True)
class ProofsQuerySet(models.QuerySet): class ProofsQuerySet(models.QuerySet):
def for_authors(self): def for_authors(self):
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% include 'production/partials/stream_status_changes.html' with form=status_form stream=stream %} {% include 'production/partials/stream_status_changes.html' with form=status_form stream=stream %}
<h3>Events</h3> <h3>Events</h3>
{% include 'production/partials/production_events.html' with events=stream.events.all %} {% include 'production/partials/production_events.html' with events=stream.events.all_without_duration %}
{% if "can_work_for_stream" in sub_perms and prodevent_form %} {% if "can_work_for_stream" in sub_perms and prodevent_form %}
<h3>Add message to the Stream</h3> <h3>Add message to the Stream</h3>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
{% block actions %} {% block actions %}
<h3>Events</h3> <h3>Events</h3>
{% include 'production/partials/production_events.html' with events=stream.events.all non_editable=1 %} {% include 'production/partials/production_events.html' with events=stream.events.all_without_duration non_editable=1 %}
<h3>Work Log</h3> <h3>Work Log</h3>
{% include 'partials/finances/logs.html' with logs=stream.work_logs.all %} {% include 'partials/finances/logs.html' with logs=stream.work_logs.all %}
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
<div> <div>
<p class="mb-1"> <p class="mb-1">
<a href="{% url 'production:stream' stream.id %}">{{ stream.submission.title }}</a><br> <a href="{% url 'production:stream' stream.id %}" data-toggle="dynamic" data-target="#details">{{ stream.submission.title }}</a><br>
<em>by {{ stream.submission.author_list }}</em> <em>by {{ stream.submission.author_list }}</em>
</p> </p>
<p class="card-text mb-2"> <p class="card-text mb-2">
......
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