#29799: Allow registration and unregistration of lookups per field instances.
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Can
                                     |  Sarıgöl
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Himanshu Balasamanta):

 Replying to [comment:8 Carlton Gibson]:

 > The rough outline looks right. There are various variations but, ''I'd
 like to add a custom lookup just for **this** model'' — the model being
 the bearer of field instances; ''I'd like to disable **this** lookup on
 this model'', and so on.
 Agreed.👍 It would be more user friendly.
 So, along with register_lookup(self,lookup,lookup_name), I shall add a
 Model.register_lookup(field_name : str, lookup : Lookup, lookup_name :
 str) too.

 > I know you're looking at this targeting GSoC, so for the the sake of a
 proposal, noting the areas to be decided is OK. Showing that you've
 considered points already raised is important — make sure you looked at
 [https://github.com/django/django/pull/15529#issuecomment-1073412321
 Simon's comment on your draft PR] — I'm sure you did. Plus #33626 and the
 PR there you've made are all good signs — that's on my list to review next
 week.
 >
 > I hope that helps. 🙂
 >
 >
 Thank You!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29799#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018012db8594-dc5ec5cc-489f-4a45-9fbd-687947376144-000000%40eu-central-1.amazonses.com.

Reply via email to