django app moved to subfolder
This commit is contained in:
parent
ad685a0625
commit
bb2d2b7124
75 changed files with 27 additions and 0 deletions
|
|
@ -1,12 +0,0 @@
|
|||
from django.contrib import admin
|
||||
from django.contrib.admin.decorators import register
|
||||
from .models import Article
|
||||
|
||||
# Register your models here.
|
||||
@register(Article)
|
||||
class ArticleAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'slug', 'status','created_on')
|
||||
list_filter = ("status",)
|
||||
search_fields = ['title', 'content']
|
||||
prepopulated_fields = {'slug': ('title',)}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue