Version: drop file field, use files instead #193
@ -8,8 +8,6 @@ def populate_file(apps, schema_editor):
|
||||
to_update = []
|
||||
for v in Version.objects.all():
|
||||
v.file = v.files.first()
|
||||
if v.file is None:
|
||||
print(v)
|
||||
to_update.append(v)
|
||||
Version.objects.bulk_update(to_update, ['file'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user