Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a2ab9b7ca6
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (5 sloc) 0.23 kb
from django.conf import settings
LIKABLE_MODELS = getattr(settings, "PHILEO_LIKABLE_MODELS", [])
def _allowed(obj):
model_name = "%s.%s" % (obj._meta.app_label, obj._meta.object_name)
return model_name in LIKABLE_MODELS
Jump to Line
Something went wrong with that request. Please try again.