#28937: Allow BinaryField to be editable=True
-------------------------------------+-------------------------------------
     Reporter:  James Pic            |                    Owner:  Cameron
                                     |  Curry
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Old description:

> Currently, it's hard to make a BinaryField subclass which has an upload
> widget because it hardcodes editable=False:
> https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L2298
>
> Can we replace this with kwargs.setdefault('editable', False) ?
>
> Thanks

New description:

 Currently, it's hard to make a BinaryField subclass which has an upload
 widget because it
 
[https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L2298
 hardcodes editable=False].

 Can we replace this with `kwargs.setdefault('editable', False)` ?

 Thanks

--

Comment (by Tim Graham):

 I added some documentation changes to the patch.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28937#comment:8>
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/062.dbb9ffa9b5a407eca8d9aa37458394f1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to