Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#628 closed defect (fixed)

django should not overwrite model class docstrings

Reported by: jkocherhans@… Owned by: Adrian Holovaty
Component: Metasystem Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

django currently overwrites your model's docstring with "modulename.ModelName(arg1, arg2)" This makes it impossible to put doctests in your model class. Django shouldn't overwrite your docstring if you define one.

Attachments (1)

patch.diff (717 bytes ) - added by jkocherhans@… 19 years ago.
this patch only writes a default docsting for a model class if you haven't defined one in your model

Download all attachments as: .zip

Change History (2)

by jkocherhans@…, 19 years ago

Attachment: patch.diff added

this patch only writes a default docsting for a model class if you haven't defined one in your model

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [878]) Fixed #628 -- Django no longer overwrites model class docstrings if they're provided

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