You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've got a queryset in ExtendedVersionAdminMixin which expects the User to have a username, but I've got a User model that uses email to login and doesn't include a username field.
def get_queryset(self, request):
queryset = super().get_queryset(request)
# Due to django admin ordering using unicode, to alphabetically order regardless of case, we must
# annotate the queryset, with the usernames all lower case, and then order based on that!
queryset = queryset.annotate(created_by_username_ordering=Lower("versions__created_by__username"))
return queryset
We've got a queryset in
ExtendedVersionAdminMixin
which expects theUser
to have a username, but I've got aUser
model that uses email to login and doesn't include ausername
field.https://github.com/django-cms/djangocms-versioning/blob/master/djangocms_versioning/admin.py#L136
So this is throwing an error from
djangocms-alias
The text was updated successfully, but these errors were encountered: