# HG changeset patch # User neko259 # Date 2014-07-05 17:29:49 # Node ID f96ca2ca4ca51e0208a5e20942cd98387dc3e856 # Parent 447bb8d7c8b72483942640c6055271e6127b78c0 Removed old maintenance module, that was used prior to data migrations. Cleaned up requirements. Minor fix in the tag model diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -61,11 +61,13 @@ class Tag(models.Model, Viewable): return tag_list - def get_linked_tags_list(self, tag_list=[]): + def get_linked_tags_list(self, tag_list=None): """ Returns the list of tags linked to current. The list can be got through returned value or tag_list parameter """ + if not tag_list: + tag_list = [] linked_tag = self.linked diff --git a/maintenance.py b/maintenance.py deleted file mode 100644 --- a/maintenance.py +++ /dev/null @@ -1,15 +0,0 @@ -""" -Maintenance script for neboard imageboard. Use this to update data after -migrations etc. -""" - -from boards.models import Post -from boards import views - -def update_posts(): - for post in Post.objects.all(): - print 'Updating post #' + str(post.id) - - post.save() - - Post.objects.connect_replies(post) diff --git a/requirements.txt b/requirements.txt --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +south line_profiler haystack pillow @@ -5,6 +6,5 @@ django>=1.6 django_cleanup django-markupfield markdown -python-markdown django-simple-captcha line-profiler