diff --git a/microblogging/users_app/fixtures/sample-followers.json b/microblogging/users_app/fixtures/sample-followers.json
index 7339cda4..8758b1f9 100644
--- a/microblogging/users_app/fixtures/sample-followers.json
+++ b/microblogging/users_app/fixtures/sample-followers.json
@@ -11,7 +11,7 @@
"model": "users_app.follower",
"pk": 2,
"fields": {
- "followed_id": 20,
+ "followed_id": 3,
"follower_id":1
}
},
@@ -19,7 +19,7 @@
"model": "users_app.follower",
"pk": 3,
"fields": {
- "followed_id": 6,
+ "followed_id": 4,
"follower_id":1
}
},
@@ -35,7 +35,7 @@
"model": "users_app.follower",
"pk": 5,
"fields": {
- "followed_id": 23,
+ "followed_id": 3,
"follower_id":2
}
},
@@ -51,8 +51,112 @@
"model": "users_app.follower",
"pk": 7,
"fields": {
- "followed_id": 18,
+ "followed_id": 5,
"follower_id":1
}
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 8,
+ "fields": {
+ "followed_id": 4,
+ "follower_id": 2
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 9,
+ "fields": {
+ "followed_id": 1,
+ "follower_id": 3
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 10,
+ "fields": {
+ "followed_id": 2,
+ "follower_id": 3
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 11,
+ "fields": {
+ "followed_id": 4,
+ "follower_id": 3
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 12,
+ "fields": {
+ "followed_id": 5,
+ "follower_id": 3
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 13,
+ "fields": {
+ "followed_id": 1,
+ "follower_id": 4
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 14,
+ "fields": {
+ "followed_id": 2,
+ "follower_id": 4
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 15,
+ "fields": {
+ "followed_id": 3,
+ "follower_id": 4
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 16,
+ "fields": {
+ "followed_id": 5,
+ "follower_id": 4
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 17,
+ "fields": {
+ "followed_id": 1,
+ "follower_id": 5
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 18,
+ "fields": {
+ "followed_id": 2,
+ "follower_id": 5
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 19,
+ "fields": {
+ "followed_id": 3,
+ "follower_id": 5
+ }
+ },
+ {
+ "model": "users_app.follower",
+ "pk": 20,
+ "fields": {
+ "followed_id": 4,
+ "follower_id": 5
+ }
}
]
\ No newline at end of file
diff --git a/microblogging/users_app/templates/first_template.html b/microblogging/users_app/templates/first_template.html
index 6cd2c6af..510f1d3b 100644
--- a/microblogging/users_app/templates/first_template.html
+++ b/microblogging/users_app/templates/first_template.html
@@ -1,62 +1,64 @@
-
+
-
+
+
My Little Books
-
+
-
-
-
-
-
-
-
- {% for post in posts %}
- -
- Username : {{ post.user.username }}
- Post : {{ post.content }}
-
-
- Tags : {% if post.tags.all %}
-
-
- {% for tag in post.tags.all %}
-
-
- {{tag.tag}} {% if not forloop.last %}, {% endif %} {% endfor %}
- {%else%} Aucun tag {% endif %}
-
-
- Date : {{ post.created_at }}
-
-
- Commentaires: {% if post.parent_id.all %} {% for comment in
- post.parent_id.all %}
-
-
- {% if comment == post.id.all %} {{post.id.content}} {% if not
- forloop.last %}, {% endif %} {% endif %} {% endfor %} {% else %} Aucun
- commentaire {% endif %}
-
-
-
- {% endfor %}
-
-
+
+ {% for post in posts %}
+ -
+ Username : {{ post.user.username }}
+ Post : {{ post.content }}
+
+ Tags : {% if post.tags.all %}
+
+ {% for tag in post.tags.all %}
+
+ {{tag.tag}} {% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ {% else %}
+ Aucun tag
+ {% endif %}
+
+ Date : {{ post.created_at }}
+
+ Commentaires: {% if post.parent_id.all %}
+ {% for comment in post.parent_id.all %}
+
+ {% if comment == post.id.all %}
+ {{post.id.content}} {% if not forloop.last %}, {% endif %}
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ Aucun commentaire
+ {% endif %}
+
+
+ {% endfor %}
+
+
-
-
-
-
+ {% endif %}
+
+