#20853: Cannot find documentation on Options.module_name and Options.model_name
-------------------------------+--------------------------------------
     Reporter:  markisus@…     |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Documentation  |                  Version:  1.5
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:  documentation  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by francis@…):

 I know this is an old bug, and what I'm suggesting is probably a very bad
 idea,  but in my case I'm stuck on 1.4.2 for a moment and need to use a
 module that has been updated to the latest >=1.6 Django versions.

 {{{
 # Monkey Patch
 from django.db.models.options import Options
 @property
 def monkeypatch__options__model_name(self):
     return self.module_name.lower()
 Options.model_name = monkeypatch__options__model_name
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20853#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/076.a8b123c60f8b3bda00fe082b1a30a28a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to