-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin.py
85 lines (69 loc) · 3.04 KB
/
admin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from django.contrib import admin
from catalog.models import Product, Pencil, Ruraltourism, EcoSystem, Blog, Subscriber, Slideshow, Calender, Pen, Paper, Notepad, Farmermarket, Evolvinglives, Ruralshiksha, Ruralshikshagal, Womenempowerment, Virasat, Testimonial
class ProductAdmin(admin.ModelAdmin):
list_display = ['Name','full_address']
list_per_page = 10
class SlideshowAdmin(admin.ModelAdmin):
list_display = ['id','caption','simg','slide']
list_per_page = 10
class CalendarAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class PenAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class PaperAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class NotepadAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class PencilAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class RuraltourismAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class TestimonialAdmin(admin.ModelAdmin):
list_display = ['id','image','credit','context']
list_per_page = 10
class VirasatAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class EvolvinglivesAdmin(admin.ModelAdmin):
list_display = ['id','Title','image','Description']
list_per_page = 10
class FarmermarketAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class RuralshikshaAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class RuralshikshagalAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class WomenempowermentAdmin(admin.ModelAdmin):
list_display = ['id','caption','image','Description']
list_per_page = 10
class BlogAdmin(admin.ModelAdmin):
list_display = ['id','Title','banner', 'created','blink']
list_per_page = 10
admin.site.register(Product, ProductAdmin)
admin.site.register(EcoSystem)
admin.site.register(Blog)
admin.site.register(Subscriber)
admin.site.register(Slideshow, SlideshowAdmin)
admin.site.register(Calender, CalendarAdmin)
admin.site.register(Pen, PenAdmin)
admin.site.register(Paper, PaperAdmin)
admin.site.register(Pencil, PencilAdmin)
admin.site.register(Notepad, NotepadAdmin)
admin.site.register(Farmermarket, FarmermarketAdmin)
admin.site.register(Evolvinglives, EvolvinglivesAdmin)
admin.site.register(Ruralshiksha, RuralshikshaAdmin)
admin.site.register(Ruralshikshagal, RuralshikshagalAdmin)
admin.site.register(Womenempowerment, WomenempowermentAdmin)
admin.site.register(Virasat, VirasatAdmin)
admin.site.register(Testimonial, TestimonialAdmin)
admin.site.register(Ruraltourism, RuraltourismAdmin)
# Register your models here.