from django.contrib import admin
from .models.UserModel import Users
from .models.CourseModel import Course
from .models.ContentModel import Content
from .models.SubscriptionModel import Subscription


class UsersAdmin(admin.ModelAdmin):
	list_display=['firstname','lastname','username','email','useruid']

	def __str__(self):
		return str(self.useruid)

class CourseAdmin(admin.ModelAdmin):
	list_display=['courseuid','coursename']

	def __str__(self):
		return str(self.courseuid)

class ContentAdmin(admin.ModelAdmin):
	list_display=['contentheading']

class SubscriptionAdmin(admin.ModelAdmin):
	list_display =[ 'coursename' , 'username']
	
	def __str__(self):
		return str(self.courseuid)



admin.site.register(Users,UsersAdmin)
admin.site.register(Course,CourseAdmin)
admin.site.register(Content,ContentAdmin)
admin.site.register(Subscription,SubscriptionAdmin)

