Open tai271828 opened 2 years ago
Describe the solution you'd like We have moved the model from factory to ohshown_event. We should update document model accordingly.
For example, in this code block:
@set_function_attributes(short_description="工廠號碼") def factory_display_number(self, obj): return mark_safe( '<a href="{}">{}</a>'.format( reverse("admin:api_factory_change", args=(obj.factory.id,)), obj.factory.display_number, ) )
The reverse url should be admin:api_ohshownevent_change.
admin:api_ohshownevent_change
We have to refactor this model otherwise we could not use the document system in the django admin console.
Describe the solution you'd like We have moved the model from factory to ohshown_event. We should update document model accordingly.
For example, in this code block:
The reverse url should be
admin:api_ohshownevent_change
.We have to refactor this model otherwise we could not use the document system in the django admin console.