Spaces:
Sleeping
Sleeping
Download testprofiles/admin.py from Ashutosh1975270/Overthinker: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/Ashutosh1975270/Overthinker/resolve/main/testprofiles/admin.py
- Command line
-
hf download hf://spaces/Ashutosh1975270/Overthinker/testprofiles/admin.py
-
curl -L -o admin.py https://huggingface.co/spaces/Ashutosh1975270/Overthinker/resolve/main/testprofiles/admin.py
447 Bytes
| from django.contrib import admin | |
| from .models import Profile, LinkItem | |
| class ProfileAdmin(admin.ModelAdmin): | |
| list_display = ('user', 'is_public') | |
| search_fields = ('user__username',) | |
| class LinkItemAdmin(admin.ModelAdmin): | |
| list_display = ('title', 'profile', 'section', 'is_public') | |
| list_filter = ('section', 'is_public') | |
| search_fields = ('title', 'profile__user__username') | |