#18133: global settings for label_suffix
-------------------------------------+-------------------------------------
Reporter: Evil Clay | Owner: nobody
<clay.evil@…> | Status: closed
Type: New feature | Version: 1.4
Component: Uncategorized | Resolution: wontfix
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Evil Clay <clay.evil@…>):
Hi,
it's your framework so it is your call. But IMHO overriding a framework
class that was not primary designed to be overridable (hence is not
abstract and is not documented to be ovveridable) is not a clean nor
elegant solution. In next version of Django, when you add an important
argument to the unity method, it will render this solution useless, or
will introduce a problem to my project which may be hard to find. So i
will have to keep track of this "solution" in the documentation hence it
can't be an elegant solution.
However, thanks for your time anyway.
P.S. If you don't want to introduce settings, you can design some
structure that can be overridden by design and will be documented as to be
overridden if such a change is needed. I'm a Java programer, so python is
not my home language so i cannot yet design this kind of machinery, but
python is a very magical language, i'm sure that a better design exists.
--
Ticket URL: <https://code.djangoproject.com/ticket/18133#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.