Adding IP to admin.

This commit is contained in:
Samuel Clay 2015-07-21 10:55:17 -07:00
parent b42d6b9182
commit e41106dce3
2 changed files with 3 additions and 0 deletions

View file

@ -404,6 +404,7 @@ def payment_history(request):
statistics = {
"created_date": user.date_joined,
"last_seen_date": user.profile.last_seen_on,
"last_seen_ip": user.profile.last_seen_ip,
"timezone": unicode(user.profile.timezone),
"stripe_id": user.profile.stripe_id,
"profile": user.profile,

View file

@ -93,6 +93,8 @@ _.extend(NEWSBLUR.ReaderUserAdmin.prototype, {
$.make('dd', data.statistics.created_date),
$.make('dt', 'Last seen:'),
$.make('dd', data.statistics.last_seen_date),
$.make('dt', 'Last IP:'),
$.make('dd', data.statistics.last_seen_ip),
$.make('dt', 'Timezone:'),
$.make('dd', data.statistics.timezone),
$.make('dt', 'Email:'),