[geany/www.geany.org] 9d5e69: Allow syncdb for non-nightlybuilds apps

Enrico Tröger git-noreply at xxxxx
Tue Oct 29 21:49:00 UTC 2013


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Wed, 05 Jun 2013 16:44:39 UTC
Commit:      9d5e69e9afdcbfd207b7dd5c0461a63578b29742
             https://github.com/geany/www.geany.org/commit/9d5e69e9afdcbfd207b7dd5c0461a63578b29742

Log Message:
-----------
Allow syncdb for non-nightlybuilds apps


Modified Paths:
--------------
    nightlybuilds/database_routers.py

Modified: nightlybuilds/database_routers.py
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -3,12 +3,12 @@
 # it under the terms of the GNU Affero General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Affero General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
@@ -49,4 +49,4 @@ def allow_relation(self, obj1, obj2, **hints):
 
     #----------------------------------------------------------------------
     def allow_syncdb(self, db, model):
-        return False
+        return model._meta.app_label != 'nightlybuilds'



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list