Changes between Version 1 and Version 2 of Ticket #29799, comment 6


Ignore:
Timestamp:
04/08/22 16:15:13 (8 months ago)
Author:
Himanshu Balasamanta
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29799, comment 6

    v1 v2  
    66Description of the functions would be as follows
    77
    8 - get_lookups()
     8- get_lookups(selforclass)
    99  - when called by a field instance, returns all class and instance lookups currently registered for that field instance
    1010  - when called by a class, returns all class lookups currently registered for that class
    1111
    12 - register_lookup
     12- register_lookup(selforclass, lookup, lookup_name)
    1313  - when called by a field instance, registers the lookup for that field instance
    1414  - when called by a class, registers the lookup for that class
    1515
    16 - unregister_lookup
     16- unregister_lookup(selforclass, lookup_name)
    17171. when called by a field instance,
    1818   - if the lookup is already registered with the instance, it gets removed,
     
    2222
    2323Doubts:
    24 1. Should class lookups that are unregistered for an instance be re-registered using the register_lookup method itself?
     241. Should class lookups that are unregistered for an instance be re-registered using register_lookup() itself?
    25252. Should there be a method to specifically get lookups that were registered for the instance and not the class?
Back to Top