Skip to content

Commit

Permalink
Updated AGAGD to Python 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Feb 18, 2021
1 parent 79f5e17 commit 09aff32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# * MYSQL_PASSWORD - database password (the docker entrypoint sets MYSQL_PASS to this value for app compatibility)

### Build stage, to avoid leaving dev dependencies in the final image
FROM python:2.7-slim AS build
FROM python:3.7-slim-buster AS build

WORKDIR /build

Expand All @@ -22,7 +22,7 @@ COPY requirements.txt /build/
RUN pip install --user --no-cache-dir -r requirements.txt && pip install --user --no-cache-dir uwsgi

### Final image
FROM python:2.7-slim
FROM python:3.7-slim-buster

WORKDIR /srv
RUN useradd django
Expand Down
2 changes: 1 addition & 1 deletion agagd/agagd_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Member(models.Model):
renewal_due = models.CharField(max_length=255, blank=True)
type = models.CharField(max_length=255, blank=True)

def __unicode__(self):
def __str__(self):
return " %s (%s) " % (self.full_name, self.member_id, )

class Meta:
Expand Down

0 comments on commit 09aff32

Please sign in to comment.