Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

note on minified jquery.js and DEBUG mode #640

Closed
wants to merge 1 commit into from

Conversation

evildmp
Copy link
Contributor

@evildmp evildmp commented Jan 11, 2013

#639 is more complicated than I first thought, so I have extracted one of the issues from it for this pull request, which I think will be simpler to deal with.

@mjtamlyn
Copy link
Member

👍

@evildmp
Copy link
Contributor Author

evildmp commented Jan 12, 2013

Django provides both uncompressed and 'minified' versions of jQuery, as
``jquery.js`` and ``jquery.min.js`` respectively.

The ``BaseModelAdmin`` superclass has a ``media`` property that returns a list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to edit this paragraph slightly, does this look ok:

``ModelAdmin`` and ``InlineModelAdmin`` have a ``media`` property that returns
a list of ``Media`` objects which store paths to the JavaScript files for the
forms and/or formsets. If :setting:`DEBUG` is ``True`` it will return the
uncompressed versions of various JavaScript files, including ``jquery.js``; if
not, it will return the 'minified' versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine; perhaps a comma after list of Media objects, but more importantly it's more accurate.

@timgraham timgraham closed this Jan 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants