Created
June 16, 2015 09:34
-
-
Save svfat/8baeeb5b589dd241c206 to your computer and use it in GitHub Desktop.
django admin register shortcut
This file contains 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 Post | |
@admin.register(Post) | |
class PostAdmin(admin.ModelAdmin): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment