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

1 line
2.5 KiB
JSON

[{"user_id": 12002, "stars": [], "topic_id": 10830, "date_created": 1299257675.377872, "message": "I've been looking around for this and I can't find a good answer, so let's see what convore has to offer", "group_id": 81, "id": 271160}, {"user_id": 12002, "stars": [], "topic_id": 10830, "date_created": 1299258118.4710801, "message": "generic foreign keys would provide me with row-level relations, but what I'm looking for is a \"row-to-table\" relationship.", "group_id": 81, "id": 271251}, {"user_id": 12002, "stars": [], "topic_id": 10830, "date_created": 1299258165.6794081, "message": "i could perhaps mask the fact that this is a row-to-row relationship from the user, and display the object's model name rather than its own name.. but i wonder if this is the correct approach", "group_id": 81, "id": 271261}, {"user_id": 12002, "stars": [], "topic_id": 10830, "date_created": 1299257801.3763289, "message": "The problem is: how can I point to Order and Customer in Report? i.e. I don't want a relation with a specific Order, but rather somewhere where I can define which model this Report refers to.", "group_id": 81, "id": 271183}, {"user_id": 1243, "stars": [], "topic_id": 10830, "date_created": 1299257869.0921659, "message": "Have you looked into http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey", "group_id": 81, "id": 271189}, {"user_id": 12002, "stars": [], "topic_id": 10830, "date_created": 1299257757.149276, "message": "I have models Order and Customer, simple as that. Now I'm writing a report app that generates table-level reports, be them date-based, per user, etc. I want to be able to save report 'presets', so I'm creating a model Report where this info will be stored.", "group_id": 81, "id": 271178}, {"user_id": 1243, "stars": [], "topic_id": 10830, "date_created": 1299257874.744096, "message": "(generic foreign keys)", "group_id": 81, "id": 271191}, {"user_id": 214, "stars": [{"date_created": 1299261185.8011479, "user_id": 1736}, {"date_created": 1299262959.281543, "user_id": 12002}], "topic_id": 10830, "date_created": 1299258260.5992911, "message": "Either use an FK to ContentType or just store \"appname.modelname\" in a CharField, which can be passed to get_model().", "group_id": 81, "id": 271276}, {"user_id": 308, "stars": [], "topic_id": 10830, "date_created": 1299258295.8947041, "message": "what @carljm said", "group_id": 81, "id": 271282}, {"user_id": 12002, "stars": [], "topic_id": 10830, "date_created": 1299262956.8920779, "message": "thanks a lot!", "group_id": 81, "id": 271710}]