implemented viewcount
This commit is contained in:
parent
a8b2b6d1c0
commit
dab1a625c6
6 changed files with 24 additions and 2 deletions
18
markdownblog/blog/migrations/0003_blogpost_views.py
Normal file
18
markdownblog/blog/migrations/0003_blogpost_views.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.0.5 on 2022-09-11 22:33
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('blog', '0002_alter_blogpost_title_alter_tag_name_alter_topic_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='blogpost',
|
||||
name='views',
|
||||
field=models.IntegerField(default=0),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue