Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#628 closed defect (fixed)

django should not overwrite model class docstrings

Reported by: jkocherhans@… Owned by: adrian
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: UI/UX:

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@… 9 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)

Changed 9 years ago by jkocherhans@…

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

comment:1 Changed 9 years ago by adrian

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

(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