Files
2012-02-21 01:15:00 -05:00

1 line
1.7 KiB
JSON

[{"user_id": 12002, "stars": [], "topic_id": 13196, "date_created": 1300201321.9742069, "message": "I need to find a model in my app from a string containing the model's translated verbose_name.", "group_id": 81, "id": 356974}, {"user_id": 12002, "stars": [], "topic_id": 13196, "date_created": 1300201422.386425, "message": "Imagine mydomain.com/foo/bar where 'foo' is an app name and 'bar' is a model name, which is a regex match to (w+). I want to be able to get to the model class from a translated 'bar' string. Is this possible? What am I doing wrong?", "group_id": 81, "id": 356990}, {"user_id": 12002, "stars": [], "topic_id": 13196, "date_created": 1300201264.7829101, "message": "There's a great chance I'm going about this the wrong way from the very start, but I'd like to ask away anyway.", "group_id": 81, "id": 356961}, {"user_id": 12002, "stars": [], "topic_id": 13196, "date_created": 1300201245.9203069, "message": "Does django keep an easily accessible reference of (at least part of) the translated strings?", "group_id": 81, "id": 356956}, {"user_id": 16762, "stars": [{"date_created": 1300234349.1881621, "user_id": 12002}], "topic_id": 13196, "date_created": 1300233513.6696041, "message": "You can use:\nfrom django.db.models.loading import get_models", "group_id": 81, "id": 361187}, {"user_id": 16762, "stars": [{"date_created": 1300234383.4003749, "user_id": 12002}], "topic_id": 13196, "date_created": 1300233662.556735, "message": "(specifically, that'll give you a list of models you can then iterate, looking for a ._meta.verbose_name match", "group_id": 81, "id": 361201}, {"user_id": 12002, "stars": [], "topic_id": 13196, "date_created": 1300234382.1303279, "message": "thanks, that's exactly what I was looking for!", "group_id": 81, "id": 361279}]