Merge pull request #329 from liangliangyy/dev

升级依赖,修改评论排序方式
sh_branch
且听风吟 6 years ago committed by GitHub
commit 77dc8161bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ urlpatterns = [
path(r'tag/<slug:tag_name>.html', views.TagDetailView.as_view(), name='tag_detail'),
path(r'tag/<slug:tag_name>/<int:page>.html', views.TagDetailView.as_view(), name='tag_detail_page'),
path('archives.html', views.ArchivesView.as_view(), name='archives'),
path('archives.html', cache_page(60 * 60)(views.ArchivesView.as_view()), name='archives'),
path('links.html', views.LinkListView.as_view(), name='links'),
path(r'upload', views.fileupload, name='upload'),
path(r'refresh', views.refresh_memcache, name='refresh')

@ -16,10 +16,10 @@ class Comment(models.Model):
is_enable = models.BooleanField('是否显示', default=True, blank=False, null=False)
class Meta:
ordering = ['-id']
ordering = ['id']
verbose_name = "评论"
verbose_name_plural = verbose_name
get_latest_by = 'created_time'
get_latest_by = 'id'
def __str__(self):
return self.body

@ -1,14 +1,14 @@
appdirs==1.4.3
asn1crypto==0.24.0
astroid==2.2.5
asn1crypto==1.2.0
astroid==2.3.2
attrs==19.1.0
bottle==0.12.17
certifi==2019.6.16
cffi==1.12.3
certifi==2019.9.11
cffi==1.13.1
chardet==3.0.4
coverage==4.5.4
cryptography==2.7
Django==2.2.4
cryptography==2.8
Django==2.2.6
django-appconf==1.0.3
django-autoslug==1.9.6
django-compressor==2.3
@ -16,7 +16,7 @@ django-debug-toolbar==2.0
django-haystack==2.8.1
django-ipware==2.1.0
django-mdeditor==0.1.16
django-uuslug==1.1.8
django-uuslug==1.1.9
elasticsearch==7.0.0
elasticsearch-dsl==7.0.0
idna==2.8
@ -24,35 +24,35 @@ ipaddress==1.0.22
isort==4.3.21
jieba==0.39
jsonpickle==1.2
lazy-object-proxy==1.4.1
lazy-object-proxy==1.4.2
markdown2==2.3.8
mccabe==0.6.1
mistune==0.8.4
mysqlclient==1.4.2.post1
mysqlclient==1.4.4
olefile==0.46
packaging==19.1
Pillow==6.1.0
packaging==19.2
Pillow==6.2.1
pycparser==2.19
Pygments==2.4.2
pylint==2.3.1
pylint==2.4.3
pyparsing==2.4.2
python-dateutil==2.8.0
python-logstash==0.4.6
python-memcached==1.59
python-slugify==3.0.3
pytz==2019.2
python-slugify==4.0.0
pytz==2019.3
raven==6.10.0
rcssmin==1.0.6
requests==2.22.0
rjsmin==1.1.0
six==1.12.0
sqlparse==0.3.0
text-unidecode==1.2
typed-ast==1.3.1
text-unidecode==1.3
typed-ast==1.4.0
Unidecode==1.1.1
urllib3==1.25.3
urllib3==1.25.6
webencodings==0.5.1
WeRoBot==1.9.0
WeRoBot==1.10.1
Whoosh==2.7.4
wrapt==1.11.2
xmltodict==0.12.0

Loading…
Cancel
Save