2018-07-13 12:10:39 +00:00
|
|
|
# Generated by Django 2.0.6 on 2018-07-10 20:09
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import funkwhale_api.common.utils
|
|
|
|
import funkwhale_api.common.validators
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2018-09-06 18:35:02 +00:00
|
|
|
dependencies = [("users", "0009_auto_20180619_2024")]
|
2018-07-13 12:10:39 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AddField(
|
2018-09-06 18:35:02 +00:00
|
|
|
model_name="user",
|
|
|
|
name="avatar",
|
|
|
|
field=models.ImageField(
|
|
|
|
blank=True,
|
|
|
|
max_length=150,
|
|
|
|
null=True,
|
|
|
|
upload_to=funkwhale_api.common.utils.ChunkedPath("users/avatars"),
|
|
|
|
validators=[
|
|
|
|
funkwhale_api.common.validators.ImageDimensionsValidator(
|
|
|
|
max_height=400, max_width=400, min_height=50, min_width=50
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
2018-07-13 12:10:39 +00:00
|
|
|
]
|