From 921d06a8e01e2613abdd07ce4d1a88d4957fe0d1 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 22 Mar 2012 00:04:01 +0100 Subject: Add Category model Each feed can belong to multiple categories. A category is only a slug. --- aggregator/fixtures/initial_data.json | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'aggregator/fixtures') diff --git a/aggregator/fixtures/initial_data.json b/aggregator/fixtures/initial_data.json index 5926e9c..e91883d 100644 --- a/aggregator/fixtures/initial_data.json +++ b/aggregator/fixtures/initial_data.json @@ -1,4 +1,18 @@ [ + { + "model": "aggregator.Category", + "pk": 1, + "fields": { + "name": "misc" + } + }, + { + "model": "aggregator.Category", + "pk": 2, + "fields": { + "name": "code" + } + }, { "model": "aggregator.Feed", "pk": 1, @@ -7,7 +21,8 @@ "base_url": "http://www.advogato.org/", "feed_url": "person/ryuslash/rss.xml", "profile_url": "person/ryuslash", - "favicon_ext": "ico" + "favicon_ext": "ico", + "categories": [ 1 ] } }, { @@ -19,7 +34,8 @@ "feed_url": "public/ryuslash.atom", "profile_url": "public/ryuslash", "br2nl": true, - "with_markdown": true + "with_markdown": true, + "categories": [ 1 ] } }, { @@ -30,7 +46,8 @@ "base_url": "http://identi.ca/", "feed_url": "api/statuses/user_timeline/107950.rss", "profile_url": "ryuslash", - "favicon_ext": "ico" + "favicon_ext": "ico", + "categories": [ 1 ] } }, { @@ -40,7 +57,8 @@ "name": "Github", "base_url": "https://github.com/", "feed_url": "ryuslash.atom", - "profile_url": "ryuslash" + "profile_url": "ryuslash", + "categories": [ 2 ] } }, { @@ -50,7 +68,8 @@ "name": "Gitorious", "base_url": "https://gitorious.org/", "feed_url": "~ryuslash/feed.atom", - "profile_url": "~ryuslash" + "profile_url": "~ryuslash", + "categories": [ 2 ] } }, { @@ -60,7 +79,8 @@ "name": "Ikiwiki", "base_url": "http://ryuslash.org/wiki/", "feed_url": "index.rss", - "uses_title": true + "uses_title": true, + "categories": [ 1 ] } }, { @@ -72,7 +92,8 @@ "feed_url": "user/ryuslash/.rss", "profile_url": "usr/ryuslash/", "uses_title": true, - "favicon_ext": "ico" + "favicon_ext": "ico", + "categories": [ 1 ] } } ] -- cgit v1.2.3-54-g00ecf