|
|
@ -2,5 +2,17 @@ from django.contrib import admin
|
|
|
|
import wishlist.models as m
|
|
|
|
import wishlist.models as m
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(m.WishList)
|
|
|
|
admin.site.register(m.WishList)
|
|
|
|
admin.site.register(m.WishedItem)
|
|
|
|
|
|
|
|
|
|
|
|
from django.forms import ModelForm
|
|
|
|
|
|
|
|
class WishedItemAdminForm(ModelForm):
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
|
|
|
|
model = m.WishedItem
|
|
|
|
|
|
|
|
fields = '__all__'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@admin.register(m.WishedItem)
|
|
|
|
|
|
|
|
class WishedItemAdmin(admin.ModelAdmin):
|
|
|
|
|
|
|
|
form = WishedItemAdminForm
|
|
|
|
|
|
|
|
filter_horizontal = ['wishlists']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#admin.site.register(m.DreamComeTrue)
|
|
|
|
#admin.site.register(m.DreamComeTrue)
|
|
|
|