Code

Opened 4 years ago

Last modified 4 years ago

#12857 new New feature

Doc: Media class usage

Reported by: Ciantic Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I've noticed that one can create own Media objects outside Widgets/Forms, using directly the django.forms.widgets.Media but documentation mentions nothing of using this.

Media objects are highly usable outside Forms/Widgets also, since one can combine all the media and the intersecting css/js is not duplicated.

It is not a big deal, but still it would be more logical to explain the direct usage of Media class in here http://docs.djangoproject.com/en/dev/topics/forms/media/#media-objects

Attachments (0)

Change History (6)

comment:1 Changed 4 years ago by Ciantic

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Also I've noticed that using the django.forms.widgets.Media is also pain, since one cannot give easily the items in __init__... Which is sad, and should probably be fixed.

comment:2 Changed 4 years ago by russellm

  • Component changed from Forms to Documentation
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by lukeplant

  • Type set to New feature

comment:4 Changed 3 years ago by lukeplant

  • Severity set to Normal

comment:5 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:6 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new
The owner will be changed from nobody to anonymous. Next status will be 'assigned'
as The resolution will be set. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.