from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .models import User,Post,Image,Category,Tag,Comment

# from .models import Profile

# # Define an inline admin descriptor for Profiles model
# # which acts a bit like a singleton
# class ProfilesInLine(admin.StackedInline):
#     model = Profile
#     can_delete = False
#     verbose_name_plural = 'profile'

# # Define a new User admin
# class UserAdmin(BaseUserAdmin):
#     inlines = (ProfilesInLine,)

# # Re-register UserAdmin
# admin.site.unregister(User)
admin.site.register(User)#check
admin.site.register(Post)
admin.site.register(Image)
admin.site.register(Category)
admin.site.register(Tag)
admin.site.register(Comment)
