django-janitor / janitor / models.py

Author Commit Message Labels Comments Date
Brad Montgomery avatarBrad Montgomery
pep8 and minor refactoring
Brad Montgomery avatarBrad Montgomery
whoops, don't need that
Brad Montgomery avatarBrad Montgomery
Wrapped the module-level callback registration in a function that works with failed transactions.
Brad Montgomery avatarBrad Montgomery
added app/model properties to FieldSanitizers, and listed them in the ModelAdmin
Brad Montgomery avatarBrad Montgomery
Added managment commands to parse/list html tags used in content.
Brad Montgomery avatarBrad Montgomery
Added managment commands to make "batch" cleaning easier.
Brad Montgomery avatarBrad Montgomery
Fixed the DatabaseError import. Close #1
Brad Montgomery avatarBrad Montgomery
Now using bleach.clean (compatiblilty with future versions!)
Brad Montgomery avatarBrad Montgomery
Updated to work with bleach 0.5.0 and renamed html_tags to whitelists
Brad Montgomery avatarBrad Montgomery
Wrapped the module-level signal registration in try/except so they don't fail on stuff like syncdb.
Brad Montgomery avatarBrad Montgomery
Added "tags" and "attributes" fields to the FieldSanitizer class to store the whitelist for bleach, and added some conventient methods to grab those as lists.
Brad Montgomery avatarBrad Montgomery
Fixed a typo and added a terribly limited list of default tags for bleach's whitelist.
Brad Montgomery avatarBrad Montgomery
initial commit
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.