Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from __future__ import unicode_literals
- from django.contrib import admin
- from .models import AccountModel
- #class AccountAdmin(admin.ModelAdmin):
- #account_id = models.CharField(max_length=10)
- class AccountAdmin(admin.ModelAdmin):
- search_fields = ['account_id']
- list_display = ['account_id',]
- list_per_page = 50
- admin.site.register(AccountModel,AccountAdmin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement