#25866: Django migrations not picking up max_length change on FileField
-------------------------------------+-------------------------------------
Reporter: gabn88 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.7
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by gabn88:
Old description:
> I have subclassed a FileField (call it S3storage) which first had no
> max_length
>
> Now I changed max_length to 1000. Then running ./manage.py makemigrations
> it does not seems to be picked up.
>
> The only thing I did was:
> {{
> class S3FileField(models.FileField):
> def __init__(self, *args, **kwargs):
> super(S3PrivateFileField, self).__init__(*args, **kwargs)
> self.storage.default_acl = "private"
> }}
New description:
I have subclassed a FileField (call it S3storage) which first had no
max_length
Now I changed max_length to 1000. Then running ./manage.py makemigrations
it does not seems to be picked up.
The only thing I did was:
{{{
class S3FileField(models.FileField):
def __init__(self, *args, **kwargs):
super(S3PrivateFileField, self).__init__(*args, **kwargs)
self.storage.default_acl = "private"
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/25866#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.ac15fccb6fb82582b394e0fd83cf95e2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.