0001-api-remove-unused-function-28962.patch
src/authentic2/api_views.py | ||
---|---|---|
305 | 305 |
return request.user.to_json() |
306 | 306 | |
307 | 307 | |
308 |
def attributes_hash(attributes): |
|
309 |
attributes = sorted(attributes, key=lambda at: at.name) |
|
310 |
return hash(tuple((at.name, at.required) for at in attributes)) |
|
311 | ||
312 | ||
313 | 308 |
class BaseUserSerializer(serializers.ModelSerializer): |
314 | 309 |
ou = serializers.SlugRelatedField( |
315 | 310 |
queryset=get_ou_model().objects.all(), |
316 |
- |