diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-10-11 23:34:33 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 23:46:31 +0100 |
commit | 5f66e6465d3822b150898de2a7fb8df39ed7fdc6 (patch) | |
tree | 394948060f5cff75de651b65b2a6509608c8ac60 /src/web/controllers/abstract.py | |
parent | a bit of cleaning, putting code where it belongs (diff) | |
download | newspipe-5f66e6465d3822b150898de2a7fb8df39ed7fdc6.tar.gz newspipe-5f66e6465d3822b150898de2a7fb8df39ed7fdc6.tar.bz2 newspipe-5f66e6465d3822b150898de2a7fb8df39ed7fdc6.zip |
removing misplaced stuffs from views, more controllers use
Diffstat (limited to 'src/web/controllers/abstract.py')
-rw-r--r-- | src/web/controllers/abstract.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py index f33d241e..99d92ff3 100644 --- a/src/web/controllers/abstract.py +++ b/src/web/controllers/abstract.py @@ -84,7 +84,7 @@ class AbstractController(object): def create(self, **attrs): assert self._user_id_key is None or self._user_id_key in attrs \ - or self.user_id is not None, \ + or self.user_id is None, \ "You must provide user_id one way or another" if self._user_id_key is not None and self._user_id_key not in attrs: |