Skip to content

Commit

Permalink
Merge 6eb7fcd into 806ee62
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco committed Apr 13, 2023
2 parents 806ee62 + 6eb7fcd commit f3df4a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y gfortran

# upgrade pip and install poetry
RUN pip install --upgrade pip && pip install poetry
RUN pip install --upgrade pip && pip install "poetry>=1.4.2"

WORKDIR /src

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.0.4 on 2023-04-12 17:03

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('proposals', '0008_auto_20210708_1623'),
]

operations = [
migrations.AlterModelOptions(
name='semester',
options={'ordering': ['-start', 'id']},
),
]
3 changes: 3 additions & 0 deletions observation_portal/proposals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ class Semester(models.Model):
end = models.DateTimeField()
proposals = models.ManyToManyField("Proposal", through="TimeAllocation")

class Meta:
ordering = ["-start", "id"]

@classmethod
def current_semesters(cls, future=False):
semesters = cls.objects.filter(end__gte=timezone.now())
Expand Down

0 comments on commit f3df4a4

Please sign in to comment.