mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-08-03 09:43:15 +08:00
Update webdriver utility functions and add a sample celery task for scraping Google search
This commit is contained in:
parent
0e902b1f04
commit
9e2e32fba8
11 changed files with 193 additions and 25 deletions
10
backend/search_results/admin.py
Normal file
10
backend/search_results/admin.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from unfold.admin import ModelAdmin
|
||||
from django.contrib import admin
|
||||
from .models import SearchResult
|
||||
|
||||
|
||||
@admin.register(SearchResult)
|
||||
class SearchResultAdmin(ModelAdmin):
|
||||
model = SearchResult
|
||||
search_fields = ('id', 'title', 'link')
|
||||
list_display = ['id', 'title']
|
Loading…
Add table
Add a link
Reference in a new issue