~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to main/admin.py

  • Committer: Janos Gyerik
  • Date: 2012-02-05 07:44:37 UTC
  • Revision ID: janos@axiom-20120205074437-9atye2gcgkyof9pm
major refactoring: renamed WishListQuestion and WishListAnswer models to simply Question and Answer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.contrib import admin
2
2
 
3
 
from bashoneliners.main.models import HackerProfile, OneLiner, WishListQuestion, WishListAnswer
 
3
from bashoneliners.main.models import HackerProfile, OneLiner, Question, Answer
4
4
 
5
5
class OneLinerAdmin(admin.ModelAdmin):
6
6
    list_display = ('user', 'is_published', 'was_tweeted', 'summary', 'created_dt',)
7
7
 
8
 
class WishListQuestionAdmin(admin.ModelAdmin):
 
8
class QuestionAdmin(admin.ModelAdmin):
9
9
    list_display = ('user', 'is_published', 'is_answered', 'summary', 'created_dt',)
10
10
 
11
11
class HackerProfileAdmin(admin.ModelAdmin):
13
13
 
14
14
 
15
15
admin.site.register(OneLiner, OneLinerAdmin)
16
 
admin.site.register(WishListQuestion, WishListQuestionAdmin)
 
16
admin.site.register(Question, QuestionAdmin)
17
17
admin.site.register(HackerProfile, HackerProfileAdmin)
18
18
 
19
19
# eof