This file contains 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
<?php | |
namespace Application\Service; | |
use Zend\Cache\Storage\Adapter\MemcachedOptions; | |
use Zend\Cache\Storage\Adapter\MemcachedResourceManager; | |
use Zend\Cache\StorageFactory; | |
use Zend\ServiceManager\FactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zend\Session\SaveHandler\Cache; |
This file contains 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
""" | |
Hide permission in the Django admin which are irrelevant, and not used at all. | |
""" | |
from django.contrib import admin | |
from django.contrib.auth.admin import GroupAdmin, UserAdmin | |
from django.contrib.auth.models import Group, User | |
class PermissionFilterMixin(object): | |
def formfield_for_manytomany(self, db_field, request=None, **kwargs): |