Fakultas Ilmu Komputer UI

Commit 5c0bff97 authored by hashlash's avatar hashlash
Browse files

[CHORES] change mustahik photo to imagefield

parent c1715945
......@@ -8,7 +8,7 @@ ENV PYTHONUNBUFFERED 1
COPY ./requirements.txt .
RUN apk add --no-cache --virtual .build-deps \
gcc postgresql-dev libpq musl-dev \
gcc postgresql-dev libpq musl-dev jpeg-dev zlib-dev\
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& find /usr/local \
......
......@@ -6,5 +6,6 @@ django-graphql-jwt==0.3.1
graphene-django==2.10.1
gunicorn==20.0.4
psycopg2-binary==2.8.5
Pillow==7.2.0
pytz==2020.1
sqlparse==0.3.1
# Generated by Django 3.0.7 on 2020-09-04 11:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mustahik', '0002_auto_20200816_1347'),
]
operations = [
migrations.AlterField(
model_name='mustahik',
name='photo',
field=models.ImageField(default='images/default_photo.jpg', upload_to='images/mustahik'),
),
]
......@@ -33,7 +33,7 @@ class Mustahik(models.Model):
birthdate = models.DateField()
status = models.CharField(max_length=32, choices=Status.choices)
gender = models.CharField(max_length=1, choices=Gender.choices)
photo = models.FileField(
photo = models.ImageField(
upload_to=os.path.join('images', 'mustahik'),
default=os.path.join('images', 'default_photo.jpg')
)
......
Supports Markdown
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