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

Comment (by Cameron Curry):

 Hi James could you clarify a bit what you mean? I'm planning on following
 the same pattern as URLField.deconstruct and FilePathField.deconstruct in
 BinaryField.deconstruct, as in:
 def deconstruct:
 ...
 if kwargs.get('editable') is False: del kwargs!['editable']
 ...

 would this do the trick?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28937#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.c0a94848cd10350251d10f6cee092633%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to