From 41f02eb24ff4c0504856714bc58e1b9e5a06ab70 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <gawi@prc.prc.parkinson.lu>
Date: Tue, 7 Feb 2017 17:05:06 +0100
Subject: [PATCH] default value for number of visits set to 0

---
 smash/web/models.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/smash/web/models.py b/smash/web/models.py
index 2c86753a..e00a7e23 100644
--- a/smash/web/models.py
+++ b/smash/web/models.py
@@ -115,6 +115,7 @@ class Subject(models.Model):
         verbose_name='ND number'
     )
     visit_count = models.IntegerField(
+	default=0,
         verbose_name='Number of visits'
     )
     mpower_id = models.CharField(max_length=20,
-- 
GitLab