misc: update rest-framework user look up for new _meta API (#21098)

This commit is contained in:
Frédéric Péters 2018-01-11 10:48:16 +01:00
parent 456ca1b8e3
commit 9f4ad342e8
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class PublikAuthentication(authentication.BaseAuthentication):
name_id = request.GET['NameID']
is_authentic = True
try:
User._meta.get_field_by_name('uuid')
User._meta.get_field('uuid')
except FieldDoesNotExist:
is_authentic = False