Skip to content

Commit

Permalink
Merge pull request #1234 Add 'active' field to RestService model
Browse files Browse the repository at this point in the history
  • Loading branch information
ukanga authored Feb 6, 2018
2 parents b35ca70 + 469832f commit 4aaf561
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions onadata/apps/restservice/migrations/0003_restservice_active.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-02-06 08:33
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('restservice', '0002_auto_20160524_0458'),
]

operations = [
migrations.AddField(
model_name='restservice',
name='active',
field=models.BooleanField(default=True, verbose_name='Active'),
),
]
2 changes: 2 additions & 0 deletions onadata/apps/restservice/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Meta:
date_created = models.DateTimeField(
auto_now_add=True, null=True, blank=True)
date_modified = models.DateTimeField(auto_now=True, null=True, blank=True)
active = models.BooleanField(ugettext_lazy("Active"), default=True,
blank=False, null=False)

def __unicode__(self):
return u"%s:%s - %s" % (self.xform, self.long_name, self.service_url)
Expand Down

0 comments on commit 4aaf561

Please sign in to comment.