Project

General

Profile

Download (250 Bytes) Statistics
| Branch: | Tag: | Revision:

from ajax_select import LookupChannel
from django.core.exceptions import PermissionDenied

class CalebasseLookup(LookupChannel):

def check_auth(self, request):
if not request.user.is_authenticated():
raise PermissionDenied

(9-9/17)