Skip to content

Commit 45e9801

Browse files
committed
Added a migration which provides photo field default values and updates the upload path to the one used in production.
- Legacy-Id: 11345
1 parent d570163 commit 45e9801

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

changelog

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
ietfdb (6.22.1) ietf; urgency=low
2+
3+
This is a small bugfix release which fixes a number of issues which made
4+
some manual actions necessary in order to use the 6.22.0 release in
5+
development mode.
6+
7+
* Added a missing __init__.py file.
8+
9+
* Added default media and photo directories for use in development.
10+
Changed settings to point to the media dir in development.
11+
12+
* Fixed a bug in the default alias-file settings.
13+
14+
* Improved data migration for plain_name aliases.
15+
16+
* Tweaked indentation of inline python in the mkdevbranch bash script.
17+
18+
* Tweaked bin/mkrelease to be more quiet.
19+
20+
-- Henrik Levkowetz <henrik@levkowetz.com> 13 Jun 2016 07:05:26 -0700
21+
22+
23+
124
ietfdb (6.22.0) ietf; urgency=medium
225

326
**Support for profile photo and biograpy**
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
import ietf.utils.storage
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('person', '0013_add_plain_name_aliases'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='person',
17+
name='photo',
18+
field=models.ImageField(default=None, storage=ietf.utils.storage.NoLocationMigrationFileSystemStorage(location=None), upload_to=b'photo', blank=True),
19+
preserve_default=True,
20+
),
21+
migrations.AlterField(
22+
model_name='person',
23+
name='photo_thumb',
24+
field=models.ImageField(default=None, storage=ietf.utils.storage.NoLocationMigrationFileSystemStorage(location=None), upload_to=b'photo', blank=True),
25+
preserve_default=True,
26+
),
27+
migrations.AlterField(
28+
model_name='personhistory',
29+
name='photo',
30+
field=models.ImageField(default=None, storage=ietf.utils.storage.NoLocationMigrationFileSystemStorage(location=None), upload_to=b'photo', blank=True),
31+
preserve_default=True,
32+
),
33+
migrations.AlterField(
34+
model_name='personhistory',
35+
name='photo_thumb',
36+
field=models.ImageField(default=None, storage=ietf.utils.storage.NoLocationMigrationFileSystemStorage(location=None), upload_to=b'photo', blank=True),
37+
preserve_default=True,
38+
),
39+
]

0 commit comments

Comments
 (0)