add project location
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from core.apps.projects.models.project import Project, ProjectFolder
|
||||
from core.apps.projects.models.project import Project, ProjectFolder, ProjectLocation
|
||||
|
||||
|
||||
|
||||
@@ -14,4 +14,9 @@ class ProjectAdmin(admin.ModelAdmin):
|
||||
@admin.register(ProjectFolder)
|
||||
class ProjectFolderAdmin(admin.ModelAdmin):
|
||||
list_display = ['id', 'name']
|
||||
search_fields = ['name']
|
||||
search_fields = ['name']
|
||||
|
||||
|
||||
@admin.register(ProjectLocation)
|
||||
class ProjectLocation(admin.ModelAdmin):
|
||||
list_display = ['address', 'latitude', 'longitude']
|
||||
Reference in New Issue
Block a user