# Path: reformedacademy/models.py
# class Category(models.Model):
#     class Meta:
# class User(AbstractUser):
# class Course(models.Model):
# class ActivationKey(models.Model):
# class Lesson(models.Model):
#     class Meta:
# class Book(models.Model):
# class BookURL(models.Model):
# class BookISBN(models.Model):
# class Task(models.Model):
#     class Meta:
# class PassageIndex(models.Model):
# class CourseProgress(models.Model):
# class LessonProgress(models.Model):
# class TaskProgress(models.Model):
# class CourseLog(models.Model):
# class BetaToken(models.Model):
#     def __str__(self):
#     def __str__(self):
#     def progress_for_user(self, user):
#     def check_complete(self, user):
#     def enroll(self, user):
#     def drop(self, user):
#     def __str__(self):
#     def __eq__(self, other):
#     def total_tasks(self):
#     def progress_for_user(self, user):
#     def check_complete(self, user):
#     def __str__(self):
#     def __str__(self):
#     def website(self):
#     def save(self, *args, **kwargs):
#     def progress_for_user(self, user):
#     def complete(self, user, course_progress):
#     def __str__(self):
#     def __eq__(self, other):
#     def extract_from_string(value):
#     def calc_progress(self, user):
#     def complete(self):
#     def __str__(self):
#     def complete(self):
#     def start_course(user):
#     def complete_course(user):
#     def drop_course(user):
#     def start_lesson(user):
#     def complete_lesson(user):
#     def complete_task(user):
#     def drop_task(user):
#     def generate():
#     COURSE = 'course'
#     LESSON = 'lesson'
#     TASK = 'task'
#     TYPE_CHOICES = (
#         (COURSE, 'Course'),
#         (LESSON, 'Lesson'),
#         (TASK, 'Task')
#     )
#     STARTED = 'started'
#     COMPLETED = 'completed'
#     DROPPED = 'dropped'
#     ACTION_CHOICES = (
#         (STARTED, 'Started'),
#         (COMPLETED, 'Completed'),
#         (DROPPED, 'Dropped')
#     )


from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.core.urlresolvers import reverse
from reformedacademy import models
    ordering = ('course', 'order')


class BookISBNInline(admin.TabularInline):
    model = models.BookISBN
    extra = 1


class BookPassageInline(admin.TabularInline):
    model = models.PassageIndex
    extra = 1
    exclude = ('task',)


class BookURLInline(admin.TabularInline):
    model = models.BookURL
    extra = 1


class BookAdmin(admin.ModelAdmin):
    model = models.Book
    inlines = [BookURLInline, BookISBNInline, BookPassageInline]
    filter_horizontal = ('authors',)
    search_fields = ['title']


class UserAdmin(UserAdmin):
    list_display = ('email',)



# Path: reformedacademy/models.py
# class Category(models.Model):
#     class Meta:
# class User(AbstractUser):
# class Course(models.Model):
# class ActivationKey(models.Model):
# class Lesson(models.Model):
#     class Meta:
# class Book(models.Model):
# class BookURL(models.Model):
# class BookISBN(models.Model):
# class Task(models.Model):
#     class Meta:
# class PassageIndex(models.Model):
# class CourseProgress(models.Model):
# class LessonProgress(models.Model):
# class TaskProgress(models.Model):
# class CourseLog(models.Model):
# class BetaToken(models.Model):
#     def __str__(self):
#     def __str__(self):
#     def progress_for_user(self, user):
#     def check_complete(self, user):
#     def enroll(self, user):
#     def drop(self, user):
#     def __str__(self):
#     def __eq__(self, other):
#     def total_tasks(self):
#     def progress_for_user(self, user):
#     def check_complete(self, user):
#     def __str__(self):
#     def __str__(self):
#     def website(self):
#     def save(self, *args, **kwargs):
#     def progress_for_user(self, user):
#     def complete(self, user, course_progress):
#     def __str__(self):
#     def __eq__(self, other):
#     def extract_from_string(value):
#     def calc_progress(self, user):
#     def complete(self):
#     def __str__(self):
#     def complete(self):
#     def start_course(user):
#     def complete_course(user):
#     def drop_course(user):
#     def start_lesson(user):
#     def complete_lesson(user):
#     def complete_task(user):
#     def drop_task(user):
#     def generate():
#     COURSE = 'course'
#     LESSON = 'lesson'
#     TASK = 'task'
#     TYPE_CHOICES = (
#         (COURSE, 'Course'),
#         (LESSON, 'Lesson'),
#         (TASK, 'Task')
#     )
#     STARTED = 'started'
#     COMPLETED = 'completed'
#     DROPPED = 'dropped'
#     ACTION_CHOICES = (
#         (STARTED, 'Started'),
#         (COMPLETED, 'Completed'),
#         (DROPPED, 'Dropped')
#     )


# Path: reformedacademy/admin.py
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.core.urlresolvers import reverse
from reformedacademy import models

    ordering = ('course', 'order')


class BookISBNInline(admin.TabularInline):
    model = models.BookISBN
    extra = 1


class BookPassageInline(admin.TabularInline):
    model = models.PassageIndex
    extra = 1
    exclude = ('task',)


class BookURLInline(admin.TabularInline):
    model = models.BookURL
    extra = 1


class BookAdmin(admin.ModelAdmin):
    model = models.Book
    inlines = [BookURLInline, BookISBNInline, BookPassageInline]
    filter_horizontal = ('authors',)
    search_fields = ['title']


class UserAdmin(UserAdmin):
    list_display = ('email',)



admin.site.register(models.User, UserAdmin)