Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2817 closed defect (fixed)

[patch] missing space in ADmin documentation for related fields

Reported by: Maximillian Dornseif <md@…> Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There is a space missing in Many to Many fields in Admin. Example: gifen a field like
models.ManyToManyField('Product', [...], help_text='Wenn [...]7150/01".') I get in Admin:

Wenn [...]7150/01".Mehrere IDs können mit Komma getrennt werden.
                  ^ missing space

The space between help_text and 'Separate multiple IDs with commas.' is missing. Easy fix:

Index: django/db/models/fields/related.py
--- django/db/models/fields/related.py	(revision 3841)
[...]
-        self.help_text = string_concat(self.help_text, msg)
+        self.help_text = string_concat(self.help_text, " ", msg)

complete patch at http://c0re.23.nu/c0de/misc/django-3841-related_field_documation.diff

Change History (1)

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [3848]) Fixed #2817 -- Fixed formatting problem in admin help string. Thanks,
Maximillian Dornseif.

Note: See TracTickets for help on using tickets.
Back to Top