Esempio n. 1
0
from archfinch.users.models import User
from django.contrib import admin
from archfinch.utils.admin import raw_id_fields_admin


admin.site.register(User, raw_id_fields_admin('referred_by'))
Esempio n. 2
0
from archfinch.links.models import Link
from django.contrib import admin
from archfinch.utils.admin import raw_id_fields_admin


admin.site.register(Link, raw_id_fields_admin('parent', 'submitter'))
Esempio n. 3
0
from archfinch.sync.models import Source, Synced
from django.contrib import admin
from archfinch.utils.admin import raw_id_fields_admin


admin.site.register(Source)
admin.site.register(Synced, raw_id_fields_admin('link'))
Esempio n. 4
0
from archfinch.main.models import Category, Item, ItemProfile, Opinion, Action, Similarity, ItemOption, ItemStats, Tag, TagBlock, TagFollow, Tagged, Review
from django.contrib import admin
from archfinch.utils.admin import raw_id_fields_admin


admin.site.register(Category)
admin.site.register(Item, raw_id_fields_admin('parent', 'submitter'))
admin.site.register(ItemProfile, raw_id_fields_admin('item'))
admin.site.register(ItemOption, raw_id_fields_admin('item'))
admin.site.register(ItemStats, raw_id_fields_admin('item'))
admin.site.register(Opinion)
admin.site.register(Action)
admin.site.register(Similarity)
admin.site.register(Review, raw_id_fields_admin('user', 'item'))
admin.site.register(Tag)
admin.site.register(TagBlock, raw_id_fields_admin('user'))
admin.site.register(TagFollow, raw_id_fields_admin('user'))
admin.site.register(Tagged, raw_id_fields_admin('item', 'user'))
Esempio n. 5
0
from archfinch.comments.models import Comment
from django.contrib import admin
from archfinch.utils.admin import raw_id_fields_admin


admin.site.register(Comment, raw_id_fields_admin('parent', 'submitter'))