Changes between Initial Version and Version 1 of Ticket #31416, comment 10


Ignore:
Timestamp:
Apr 13, 2020, 2:05:43 AM (5 years ago)
Author:
Nan Liu

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31416, comment 10

    initial v1  
    77> Sanskar
    88
    9 Thank you so much for your advice! I still can't figure out how to find `title` field in the base class. I was able to find `title` field from a sub class using `model_state.fields`. And I tried `model_state = self.to_state.models[base_app_label, base_model_name]` to find its fields, but there is only one field left which is self-generated `id` field. I am pretty sure I am doing it wrong. But I am just wondering if there is other ways to retrieve all fields of the base class, which is `readable` in this case.
     9Thank you so much for your advice! I still can't figure out how to find `title` field in the base class. I was able to find `title` field from a sub class using `model_state.fields`. And I tried `model_state = self.to_state.models[base_app_label, base_model_name]` to find the base class's fields, but there is only one field left which is the self-generated `id` field. Not sure why the field `title` is gone. I am pretty sure I am doing it wrong. But I am just wondering if there are other ways to retrieve all fields from the base class, which is `readable` in this case.
Back to Top