This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://www.changer.nl | |
| // http://jdbartlett.github.com/innershiv | |
| window.innerShiv = (function() { | |
| var d, r; | |
| return function(h, u) { | |
| if (!d) { | |
| d = document.createElement('div'); | |
| r = document.createDocumentFragment(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // szs Shizzle JS Selector | |
| ccarousel.init = function(szsItems, szsButtonPrev, szsButtonNext) { | |
| var numVisible = 4; | |
| var aAllItems = $(szsItems); | |
| renewList = function() { | |
| aAllItems = $(szsItems); | |
| }; | |
| aItems = $(szsItems); | |
| oLeft = $(szsButtonPrev); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 1. Imports base settings from `/serversettings/base.py` | |
| # 2. Imports settings based on server name, unless: | |
| # a. The environmental setting `SERVER_TYPE` has been set in the `django.wsgi` script | |
| # b. The name of the server corresponds to a name in the `DEVELOPMENT_MACHINES` tuple | |
| # | |
| import os | |
| import platform | |
| import sys | |
| import warnings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import operator | |
| from django.db.models.query import QuerySet | |
| from django.utils.encoding import smart_str | |
| from django.db import models | |
| def search_in_models(search_query, model_fields, queryset=False): | |
| """ | |
| Search in multiple models: | |
| `model_fields` is are tuples within a tuple defining model_class, search_field pairs |
NewerOlder