Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2817 closed defect (fixed)

[patch] missing space in ADmin documentation for related fields

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

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

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.