From 4e3977edd2cdd7ee1cb4bf356854b78ab5381e92 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Wed, 21 Aug 2019 15:39:49 +0000 Subject: [PATCH] enum sigh --- ttadmin/users/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ttadmin/users/admin.py b/ttadmin/users/admin.py index 73bad03..3993074 100644 --- a/ttadmin/users/admin.py +++ b/ttadmin/users/admin.py @@ -11,7 +11,7 @@ class PubkeyInline(admin.TabularInline): def bulk_accept(madmin, req, qs): for townie in qs: - townie.state = 'accepted' + townie.state = Townie.ACCEPTED townie.save() post_users_to_social(qs) @@ -19,7 +19,7 @@ bulk_accept.short_description = 'mark selected townies as accepted' def bulk_reject(madmin, req, qs): for townie in qs: - townie.state = 'rejected' + townie.state = Townie.REJECTED townie.save() bulk_reject.short_description = 'mark selected townies as rejected'