remove the inline pictures from the Article admin page

I've removed the inline pictures because when you upload more than the
maximum allowed pictures at once it still works. Only if you upload
them one after the other the check works. Therefor it's safer to only
allow the upload through the Picture admin page. This way the check
works every time.
This commit is contained in:
Andreas Zweili 2018-02-18 18:37:21 +01:00
parent 190242bbb7
commit 0d697114cf
1 changed files with 1 additions and 5 deletions

View File

@ -53,10 +53,6 @@ class UserAdmin(BaseUserAdmin):
inlines = (PersonInline,)
class ArticleAdmin(admin.ModelAdmin):
inlines = (PictureInline,)
class OrderPositionInline(admin.StackedInline):
model = OrderPosition
can_delete = False
@ -81,7 +77,7 @@ class OrderOfGoodsAdmin(admin.ModelAdmin):
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
admin.site.register(Article, ArticleAdmin)
admin.site.register(Article)
admin.site.register(Order, OrderAdmin)
admin.site.register(Picture, PictureAdmin)
admin.site.register(City)