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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31416, comment 10

    v1 v2  
    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 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.
     9Thank you so much for your advice! I still can't figure out how to find `title` field in the base class `readable`. I was able to find `title` field from a sub class `Book` using `model_state.fields`. And I tried `model_state = self.to_state.models[base_app_label, base_model_name]` to find `readable`'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. much appreciated!
     10
     11Cheers,
     12Nan
Back to Top