# Path: bot/users/models.py
# class Member(models.Model):
#     discord_id = models.CharField(max_length=50, unique=True)
#     name = models.CharField(_('name'), max_length=255)
#     last_seen = models.DateTimeField(null=True, blank=True)
# 
#     is_bot = models.BooleanField(default=False)
#     can_admin_bot = models.BooleanField(default=False)
# 
#     objects = MemberQuerySet.as_manager()
# 
#     def __str__(self):
#         return '<@{} name={}>'.format(self.discord_id, self.name)


from django.contrib import admin
from .models import Member



@admin.register(Member)
class MemberAdmin(admin.ModelAdmin):
    list_display = ['name', '__str__', 'is_bot', 'can_admin_bot']

# Path: bot/users/models.py
# class Member(models.Model):
#     discord_id = models.CharField(max_length=50, unique=True)
#     name = models.CharField(_('name'), max_length=255)
#     last_seen = models.DateTimeField(null=True, blank=True)
# 
#     is_bot = models.BooleanField(default=False)
#     can_admin_bot = models.BooleanField(default=False)
# 
#     objects = MemberQuerySet.as_manager()
# 
#     def __str__(self):
#         return '<@{} name={}>'.format(self.discord_id, self.name)


# Path: bot/users/admin.py
from django.contrib import admin
from .models import Member




@admin.register(Member)
class MemberAdmin(admin.ModelAdmin):
    list_display = ['name', '__str__', 'is_bot', 'can_admin_bot']

    list_filter = ['can_admin_bot', 'is_bot', 'last_seen']