mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Prechargement des données batiment/résidences pour selection des chambres
This commit is contained in:
parent
0770da51d1
commit
105348b73a
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ class EditPortForm(FormRevMixin, ModelForm):
|
|||
Interface.objects.all().select_related('domain__extension')
|
||||
)
|
||||
self.fields['related'].queryset = Port.objects.all().prefetch_related('switch__machine_ptr__interface_set__domain__extension')
|
||||
self.fields['room'].queryset = Room.objects.all().select_related('building__dormitory')
|
||||
|
||||
|
||||
class AddPortForm(FormRevMixin, ModelForm):
|
||||
|
|
Loading…
Reference in a new issue