aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/controllers
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-10-12 17:48:41 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:46:31 +0100
commit7cbbcb59f4c434fbd7e74e85c90e98fadd189b65 (patch)
treef979fd6300b8767c8bbca0a7ac5c3ee831df49df /pyaggr3g470r/controllers
parentupdating translations (diff)
downloadnewspipe-7cbbcb59f4c434fbd7e74e85c90e98fadd189b65.tar.gz
newspipe-7cbbcb59f4c434fbd7e74e85c90e98fadd189b65.tar.bz2
newspipe-7cbbcb59f4c434fbd7e74e85c90e98fadd189b65.zip
adding, improving UI to manage categories
Diffstat (limited to 'pyaggr3g470r/controllers')
-rw-r--r--pyaggr3g470r/controllers/category.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyaggr3g470r/controllers/category.py b/pyaggr3g470r/controllers/category.py
index b6fc591c..a0f746e9 100644
--- a/pyaggr3g470r/controllers/category.py
+++ b/pyaggr3g470r/controllers/category.py
@@ -1,6 +1,12 @@
from .abstract import AbstractController
from pyaggr3g470r.models import Category
+from .feed import FeedController
class CategoryController(AbstractController):
_db_cls = Category
+
+ def delete(self, obj_id):
+ FeedController(self.user_id).update({'category_id': obj_id},
+ {'category_id': None})
+ return super().delete(obj_id)
bgstack15