Created
July 23, 2014 16:23
-
-
Save bogsio/ba99d39cc31d351547b2 to your computer and use it in GitHub Desktop.
TPT - Register models to Admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.contrib import admin | |
| from models import TodoItem, TodoList | |
| class TodoItemAdmin(admin.ModelAdmin): | |
| pass | |
| class TodoListAdmin(admin.ModelAdmin): | |
| pass | |
| admin.site.register(TodoItem, TodoItemAdmin) | |
| admin.site.register(TodoList, TodoListAdmin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment