Skip to content

Commit

Permalink
feat(dev): user's contacts (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugena committed Jul 12, 2023
1 parent 43e22df commit b19ab74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions acesta/user/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class UserAdmin(auth_admin.UserAdmin):
"city",
"email",
"phone",
"points",
)
},
),
Expand Down Expand Up @@ -135,6 +136,9 @@ class UserAdmin(auth_admin.UserAdmin):
"last_login",
)

def get_ordering(self, request):
return ["-last_login"]


@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
Expand Down

0 comments on commit b19ab74

Please sign in to comment.