Skip to content

Commit

Permalink
Merge pull request #50 from liangliangyy/dev
Browse files Browse the repository at this point in the history
升级依赖包
  • Loading branch information
liangliangyy committed Nov 25, 2017
2 parents 63c5ae8 + 6ccba22 commit 6d30d40
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DjangoBlog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def block_code(text, lang, inlinestyles=False, linenos=False):


class BlogMarkDownRenderer(mistune.Renderer):
def block_code(self, text, lang):
def block_code(self, text, lang=None):
# renderer has an options
inlinestyles = self.options.get('inlinestyles')
linenos = self.options.get('linenos')
Expand Down
2 changes: 1 addition & 1 deletion blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ArticleDetailView(DetailView):
pk_url_kwarg = 'article_id'
context_object_name = "article"

def get_object(self):
def get_object(self, queryset=None):
obj = super(ArticleDetailView, self).get_object()
obj.viewed()
self.object = obj
Expand Down
17 changes: 9 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
appdirs==1.4.3
Django==1.11.5
coverage==4.4.1
Django==1.11.7
django-appconf==1.0.2
django-autoslug==1.9.3
django-compressor==2.2
django-debug-toolbar==1.8
django-debug-toolbar==1.9.1
django-haystack==2.6.1
django-ipware==1.1.6
django-pagedown==0.1.3
django-uuslug==1.1.8
jieba==0.39
jsonpickle==0.9.5
markdown2==2.3.4
mistune==0.7.4
markdown2==2.3.5
mistune==0.8.1
olefile==0.44
packaging==16.8
Pillow==4.2.1
Pillow==4.3.0
Pygments==2.2.0
PyMySQL==0.7.11
pyparsing==2.2.0
python-memcached==1.58
python-slugify==1.2.4
pytz==2017.2
pytz==2017.3
rcssmin==1.0.6
requests==2.18.4
rjsmin==1.0.12
six==1.10.0
sqlparse==0.2.3
six==1.11.0
sqlparse==0.2.4
Unidecode==0.4.21
urllib3==1.22
webencodings==0.5.1
Expand Down
10 changes: 6 additions & 4 deletions servermanager/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ def test_validate_comment(self):
s.source = 'u'
s.content = 'test'
msghandler = MessageHandler(s, {})
d = msghandler.is_admin
e = msghandler.is_password_set
msghandler.userinfo.isPasswordSet = True
msghandler.userinfo.isAdmin = True

#msghandler.userinfo.isPasswordSet = True
#msghandler.userinfo.isAdmin = True
msghandler.handler()
s.content = 'y'
msghandler.handler()
Expand All @@ -77,4 +76,7 @@ def test_validate_comment(self):
s.content='admin'
msghandler.handler()
s.content='123'
msghandler.handler()

s.content = 'exit'
msghandler.handler()
17 changes: 9 additions & 8 deletions travis_test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
appdirs==1.4.3
Django==1.11.5
coverage==4.4.1
Django==1.11.7
django-appconf==1.0.2
django-autoslug==1.9.3
django-compressor==2.2
django-debug-toolbar==1.8
django-debug-toolbar==1.9.1
django-haystack==2.6.1
django-ipware==1.1.6
django-pagedown==0.1.3
django-uuslug==1.1.8
jieba==0.39
jsonpickle==0.9.5
markdown2==2.3.4
mistune==0.7.4
markdown2==2.3.5
mistune==0.8.1
olefile==0.44
packaging==16.8
Pillow==4.2.1
Pillow==4.3.0
Pygments==2.2.0
PyMySQL==0.7.11
pyparsing==2.2.0
python-slugify==1.2.4
pytz==2017.2
pytz==2017.3
rcssmin==1.0.6
requests==2.18.4
rjsmin==1.0.12
six==1.10.0
sqlparse==0.2.3
six==1.11.0
sqlparse==0.2.4
Unidecode==0.4.21
urllib3==1.22
webencodings==0.5.1
Expand Down

0 comments on commit 6d30d40

Please sign in to comment.