Changes between Initial Version and Version 1 of Ticket #26069, comment 4


Ignore:
Timestamp:
01/13/16 11:51:22 (7 years ago)
Author:
Sven R. Kunze
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26069, comment 4

    initial v1  
    1 After reading the docs again, we discovered the original intention. We found it would help just to add "old" and "new".
    2 
    3 {{{
    4 old:
    5 MyModel._meta.get_fields_with_model():
    6 
    7 new:
    8 [
    9     (f, f.model if f.model != MyModel else None)
    10     for f in MyModel._meta.get_fields()
    11     if not f.is_relation
    12         or f.one_to_one
    13         or (f.many_to_one and f.related_model)
    14 ]
    15 }}}
    16 
    17 This would need to be repeated for all deprecated functions but would make the intention clear.
Back to Top