Changes between Version 1 and Version 4 of Ticket #25114


Ignore:
Timestamp:
Jul 12, 2015, 12:45:25 PM (9 years ago)
Author:
damon c
Comment:

You are totally right about this. I was just here to propose an alternate solution to this but I will start a discussion on the dev mailing list.

something like this...

def get_raw_id_fields(self):
        """
        Hook for overriding default raw_id_fields behavior
        """
        return self.raw_id_fields

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25114

    • Property Type UncategorizedCleanup/optimization
    • Property Resolutionwontfix
    • Property Status newclosed
    • Property Summary ModelAdmin FK fields should default to raw_idA way to change default raw_id_fields behavior
  • Ticket #25114 – Description

    v1 v4  
    55When this field refers to a model that has for example, 100,000 or more entries, this can have the affect of crashing a server, a browser, or at best making new users confused about why they cannot view the admin page for this instance.
    66
    7 Defaulting to raw_id is safer and more reliable in most cases and presents minimal compromises in usability (in my opinion).
     7A get_raw_id_fields method that enables
Back to Top