fix hb inline for admin
This commit is contained in:
@@ -64,8 +64,13 @@ class WeekPreferenceAdmin(nested_admin.NestedPolymorphicModelAdmin):
|
||||
TrainingInLIne(self.model, self.admin_site),
|
||||
HourBuildingInLine(self.model, self.admin_site),
|
||||
)
|
||||
# All other courses have only training
|
||||
return (TrainingInLIne(self.model, self.admin_site), )
|
||||
# All other courses have only training
|
||||
return (TrainingInLIne(self.model, self.admin_site), )
|
||||
else:
|
||||
return (
|
||||
TrainingInLIne(self.model, self.admin_site),
|
||||
HourBuildingInLine(self.model, self.admin_site),
|
||||
)
|
||||
|
||||
# If a user is registered as student do not show actions
|
||||
def get_actions(self, request: HttpRequest) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user