Add image uploading feature for organization (#122)
This commit is contained in:
parent
c00db58cb1
commit
9dd779f4fa
14 changed files with 130 additions and 14 deletions
21
judge/migrations/0189_organization_image.py
Normal file
21
judge/migrations/0189_organization_image.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 3.2.21 on 2024-07-08 00:05
|
||||
|
||||
from django.db import migrations, models
|
||||
import judge.models.profile
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("judge", "0188_official_contest"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="organization",
|
||||
name="organization_image",
|
||||
field=models.ImageField(
|
||||
null=True, upload_to=judge.models.profile.organization_image_path
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue