Changes between Version 1 and Version 2 of Ticket #28268, comment 2


Ignore:
Timestamp:
Jun 3, 2017, 12:01:40 PM (7 years ago)
Author:
Özer Sahin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28268, comment 2

    v1 v2  
    3131
    3232>>> model.related_count()
    33 1  # calls first time
     331  # calls first time, because rel added
    3434>>> model.related_count()
    35351  # does not call
     
    5151>>> rel.delete()
    5252>>> model.related_count()
    53 0  # calls, because related model removed
     530  # calls, because rel removed
    5454>>> model.related_content()
    5555  # calls, return nothing
Back to Top