Ticket #6571: fill_table_cache.patch

File fill_table_cache.patch, 450 bytes (added by moep, 16 years ago)
  • django/db/models/query.py

     
    853853    """
    854854
    855855    # If we've got a max_depth set and we've exceeded that depth, bail now.
    856     if max_depth and cur_depth > max_depth:
     856    if max_depth and cur_depth >= max_depth:
    857857        return None
    858858
    859859    qn = connection.ops.quote_name
Back to Top