#24768: KeyError: u"Problem installing fixture '<filename>.json': u'manager'"
-------------------------------------+-------------------------------------
     Reporter:  brian                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by brian):

 The following code is in django-audit-log - can somebody tell me if this
 is valid Django 1.8 code? I suspect maybe not...

 {{{
 if field.rel and field.rel.related_name:
     field.rel.related_name = '_auditlog_%s' % field.rel.related_name
 }}}

 If this code is not valid any more, what should it be?

 I see that field.related was depreciated in favor on field.rel, however I
 can't find anything about the field.rel API having changed.

--
Ticket URL: <https://code.djangoproject.com/ticket/24768#comment:11>
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/063.1028e1efbe6a9e6d4e2c48736be3be69%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to