- __package__ does not exist in 2.4 and 2.5 some times.
@@ -223,7 +223,7 @@ def update_app_permissions(**kwargs):
# Since all apps should have been sync'd before useradmin, referencing them
# here is functional.
app = kwargs['app']
- if app.__package__ == 'useradmin':
+ if app.__name__.startswith('useradmin'):
current = {}
try:
for dp in HuePermission.objects.all():