[Django] #25126: migrations adds settings variable to migration file

5 views
Skip to first unread message

Django

unread,
Jul 15, 2015, 10:35:45 AM7/15/15
to django-...@googlegroups.com
#25126: migrations adds settings variable to migration file
----------------------------+--------------------
Reporter: dvinegla | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
# models.py
{{{#!python
storage = FileSystemStorage(location=settings.PRIVATE_MEDIA_ROOT)

class MyModel(models.Model):
csvfile = models.FileField(upload_to='csv', storage=storage)

}}}

# 0001_initial.py

{{{#!python

migrations.CreateModel(
name='MyModel',
fields=[
('csvfile',
models.FileField(storage=django.core.files.storage.FileSystemStorage(location=b'/path/to/development/computer/private/media/root'),
upload_to='csv')),
],
),
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25126>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 15, 2015, 10:40:59 AM7/15/15
to django-...@googlegroups.com
#25126: migrations adds settings variable to migration file
----------------------------+--------------------------------------
Reporter: dvinegla | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.8
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_docs: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

Duplicate of #24648

--
Ticket URL: <https://code.djangoproject.com/ticket/25126#comment:1>

Reply all
Reply to author
Forward
0 new messages