3 ms·
Parsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fiel
by natrius 14y ago
Parsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fields, and how to deal with its database representation.
Parsers are neat in general, so if you had fun with it, more power to you.
- fatiherikli 14y agoIt's true, but the _meta way is not convenient for my use case. I am parsing uploaded python script (django model).