Skip to content
This repository was archived by the owner on Aug 31, 2020. It is now read-only.

Commit f6fd82c

Browse files
committed
production changes
1 parent ecbb6b6 commit f6fd82c

22 files changed

+3
-7
lines changed
5 Bytes
Binary file not shown.

blog/__pycache__/admin.cpython-38.pyc

5 Bytes
Binary file not shown.

blog/__pycache__/forms.cpython-38.pyc

5 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.

blog/__pycache__/urls.cpython-38.pyc

5 Bytes
Binary file not shown.

blog/__pycache__/views.cpython-38.pyc

5 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

blog/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class post(models.Model):
2828
created_on = models.DateTimeField(auto_now_add=True)
2929
status = models.IntegerField(choices=STATUS, default=0)
3030
total_views = models.IntegerField(default=0, editable=False)
31-
31+
3232
class Meta:
3333
ordering = ['-created_on']
3434

@@ -41,7 +41,7 @@ class Comment(models.Model):
4141
email = models.EmailField()
4242
body = models.TextField()
4343
created_on = models.DateTimeField(auto_now_add=True)
44-
active = models.BooleanField(default=False)
44+
active = models.BooleanField(default=True)
4545

4646
class Meta:
4747
ordering = ['created_on']
10 Bytes
Binary file not shown.
42 Bytes
Binary file not shown.
5 Bytes
Binary file not shown.

db.sqlite3

0 Bytes
Binary file not shown.

templates/post_detail.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,14 @@ <h6 class="comment_count">{{ total_comments }} comments</h6>
4242
<div class="col-md-8 card mb-4 mt-3 ">
4343
<div class="card-body">
4444
{% if new_comment %}
45-
<div class="alert alert-success" role="alert">
46-
Your comment is awaiting moderation
47-
</div>
48-
{% else %}
45+
{% endif %}
4946
<button class="btn btn-primary leave_comment_btn" onclick="display_form();">Leave a comment</button>
5047
<h3 class="comment_form_header" style="display:none;">Leave a comment</h3>
5148
<form class="comment_form" method="post" style="margin-top: 1.3em;display:none;">
5249
{{ comment_form | crispy }}
5350
{% csrf_token %}
5451
<button type="submit" class="btn btn-primary btn-lg">Submit</button>
5552
</form>
56-
{% endif %}
5753
</div>
5854
</div>
5955
</div>

0 commit comments

Comments
 (0)