# Path: moto/moe/models.py
# IMAGE_SIZE = getattr(settings,  'IMAGE_SIZE', None)
# def uuid():
#     def __unicode__(self):
#     def get_image_url(self ):
#     def posted_datetime(self):
#     def admin_thumbnail(self):
#     def admin_thumbnail(self):
# class Post(models.Model):
#     class Meta:
# class Like(models.Model):
#     class Meta:
# class Board(models.Model):
# class User(AbstractUser):


from django.contrib import admin
from moto.moe import models

class PostAdmin(admin.ModelAdmin):
    list_select_related = ('author',)
    search_fields = ['description','author__username']
    list_display = ('id','key','admin_thumbnail','author','posted_datetime')
    list_display_links = ('id','key','admin_thumbnail',)

class LikeAdmin(admin.ModelAdmin):
     list_select_related = ('author', 'post')
     list_display = ('id','admin_thumbnail','author')
     list_display_links = ('admin_thumbnail',)

class BoardAdmin(admin.ModelAdmin):
    pass

admin.site.register(models.Post, PostAdmin)
admin.site.register(models.Like, LikeAdmin)

# Path: moto/moe/models.py
# IMAGE_SIZE = getattr(settings,  'IMAGE_SIZE', None)
# def uuid():
#     def __unicode__(self):
#     def get_image_url(self ):
#     def posted_datetime(self):
#     def admin_thumbnail(self):
#     def admin_thumbnail(self):
# class Post(models.Model):
#     class Meta:
# class Like(models.Model):
#     class Meta:
# class Board(models.Model):
# class User(AbstractUser):


# Path: moto/moe/admin.py
from django.contrib import admin
from moto.moe import models


class PostAdmin(admin.ModelAdmin):
    list_select_related = ('author',)
    search_fields = ['description','author__username']
    list_display = ('id','key','admin_thumbnail','author','posted_datetime')
    list_display_links = ('id','key','admin_thumbnail',)

class LikeAdmin(admin.ModelAdmin):
     list_select_related = ('author', 'post')
     list_display = ('id','admin_thumbnail','author')
     list_display_links = ('admin_thumbnail',)

class BoardAdmin(admin.ModelAdmin):
    pass

admin.site.register(models.Post, PostAdmin)
admin.site.register(models.Like, LikeAdmin)

admin.site.register(models.Board, BoardAdmin)