Viewing the actors without being connected
The actors and regions should be visible without being loggedin. (because of the map which will be on public websites)
I try to have this on my Meta : For the actor :
class Meta(Model.Meta):
permission_classes = [ActorPermissions]
anonymous_perms = ['view']
authenticated_perms = ['view', 'add']
rdf_type = 'energiepartagee:actor'
For the region
class Meta(Model.Meta):
anonymous_perms = ['view']
authenticated_perms = ['view']
rdf_type = 'energiepartagee:region'
but I get this error
TypeError at /actors/
Cannot cast AnonymousUser to int. Are you trying to use it in place of User?
when I try to access to the data without being connected. For the regions, it seems to be ok.
Any idea ?