Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(12)  |  Derive(0)  |  Import(5)

src/a/r/archfinch-HEAD/main/admin.py   archfinch(Download)
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'))

src/a/r/archfinch-HEAD/links/admin.py   archfinch(Download)
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'))

src/a/r/archfinch-HEAD/comments/admin.py   archfinch(Download)
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'))

src/a/r/archfinch-HEAD/users/admin.py   archfinch(Download)
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'))

src/a/r/archfinch-HEAD/sync/admin.py   archfinch(Download)
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'))