misc: update rest-framework user look up for new _meta API (#21098)
This commit is contained in:
parent
456ca1b8e3
commit
9f4ad342e8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue