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