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
from django.contrib.auth.models import User | |
from django.contrib.sessions.models import Session | |
from tastypie.authorization import Authorization | |
from tastypie.exceptions import Unauthorized | |
from django.db.models import Q | |
from apps.authorization.models import UserType | |
from apps.pos.models import Pos | |
class SubdomainAuthorization(Authorization): |
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
$turquoise : #1abc9c; | |
$emerland : #2ecc71; | |
$peterriver : #3498db; | |
$amethyst : #9b59b6; | |
$wetasphalt : #34495e; | |
$greensea : #16a085; | |
$nephritis : #27ae60; | |
$belizehole : #2980b9; | |
$wisteria : #8e44ad; | |
$midnightblue: #2c3e50; |
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
from django.core.exceptions import ImproperlyConfigured | |
from django.core.management import call_command | |
from django.db.models.signals import post_syncdb | |
from south.models import MigrationHistory | |
import pizzanuvola_teaser.settings as settings | |
def migration_exists(appname, migrationnumber): | |
appname = appname.split('.')[-1] | |
return MigrationHistory.objects.filter(app_name=appname, migration__icontains=migrationnumber).exists() |
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
@orders_table = $('#orders-table', element).dataTable | |
bProcessing: true | |
bServerSide: true | |
sAjaxSource: ORDERFULL_API | |
sAjaxDataProp: "objects" | |
aoColumns: [ | |
# Put the resource name that corresponds to each table column | |
{ | |
"mData": "id" | |
"sClass": "order-id" |
NewerOlder