autocomplete contatto aziendale
parent
99c5be9439
commit
5cf41f5d53
|
|
@ -80,6 +80,8 @@ class ContattoAziendaleAdmin(ImportExportModelAdmin):
|
||||||
# list_per_page = 15
|
# list_per_page = 15
|
||||||
# paginator = CachingPaginator
|
# paginator = CachingPaginator
|
||||||
# show_full_result_count = False
|
# show_full_result_count = False
|
||||||
|
autocomplete_fields = ('azienda','persona',)
|
||||||
|
list_display = ('persona','azienda','is_personale')
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -166,6 +168,7 @@ class PersonaFisicaAdmin(PolymorphicInlineSupportMixin, PolymorphicChildModelAdm
|
||||||
# show_full_result_count = False
|
# show_full_result_count = False
|
||||||
show_in_index = False
|
show_in_index = False
|
||||||
get_model_perms = lambda self, req: {}
|
get_model_perms = lambda self, req: {}
|
||||||
|
search_fields = ('nome','cognome',)
|
||||||
inlines = (VoceContattoRubricaInline,)
|
inlines = (VoceContattoRubricaInline,)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -282,4 +285,5 @@ class SocietaAdmin(ImportExportModelAdmin):
|
||||||
# list_per_page = 15
|
# list_per_page = 15
|
||||||
# paginator = CachingPaginator
|
# paginator = CachingPaginator
|
||||||
# show_full_result_count = False
|
# show_full_result_count = False
|
||||||
|
search_fields = ('ragione_sociale',)
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue