Age | Commit message (Collapse) | Author |
|
Use `create` instead of `get_or_create` because of a sqlite3
transaction error I was getting using Django 1.6.2.
Error output:
"Your database backend doesn't behave properly when "
django.db.transaction.TransactionManagementError:
Your database backend doesn't behave properly when autocommit is off.
Turn it on before using 'atomic'.
|
|
Instead of globally setting styles for `.django-sneak-peek`, set those
styles previously defined on it on `.django-sneak-peek.default`. This
should make it easier to override styles and create new ones since
users won't have to set various `border-image`s to `none`.
|
|
|
|
Now that we require quotes around the style argument, add quotes to
the default style.
|
|
Import `TemplateSyntaxError` directly.
|
|
For `display: inline-block` positioning.
|
|
Require the template tag argument to be quoted. This allows us to
specify multiple CSS class modifiers instead of just one.
|
|
Allow sneak peek to appear inline by adding the `.inline` modifier
class.
|
|
Use `.django-sneak-peek` now that we've changed the class in the
stylesheet so that we can have better namespacing.
|
|
* Remove bad glyphs from CSS file
* Change names of CSS and border image files
|
|
Use the permission we just created with our data migration to
conditionally display the sneak_peek-ed markup.
|
|
* Create empty sneak_peek_tag/models.py to appease South
* Create South data migration for sneak peek content_type and
permission
|
|
* Don't try to get 'request' from context since it isn't available
unless 'django.core.context_processors.request' is in the
TEMPLATE_CONTEXT_PROCESSORS
* Turns out that 'user' is already in context, so get it directly
instead of having to go through request
|
|
Includes:
* Template tag
* Static resources
|