diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-02-25 23:29:17 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-02-25 23:29:17 +0200 |
commit | 88b90fff43a7715c7276db4578d6c4b33681f0c4 (patch) | |
tree | b25806a9f7f8a2e70cd85e37bda6f78045e7d84d | |
parent | 5fda35fb11d32c3041a7d0e6c210bcfb78c00f57 (diff) | |
download | Servo-88b90fff43a7715c7276db4578d6c4b33681f0c4.tar.gz Servo-88b90fff43a7715c7276db4578d6c4b33681f0c4.tar.bz2 Servo-88b90fff43a7715c7276db4578d6c4b33681f0c4.zip |
Add default manager
-rw-r--r-- | servo/migrations/0047_auto_20160225_2326.py | 22 | ||||
-rw-r--r-- | servo/migrations/0048_auto_20160225_2328.py | 20 | ||||
-rw-r--r-- | servo/models/repair.py | 1 |
3 files changed, 43 insertions, 0 deletions
diff --git a/servo/migrations/0047_auto_20160225_2326.py b/servo/migrations/0047_auto_20160225_2326.py new file mode 100644 index 0000000..aabd219 --- /dev/null +++ b/servo/migrations/0047_auto_20160225_2326.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-25 21:26 +from __future__ import unicode_literals + +from django.db import migrations +import django.db.models.manager + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0046_auto_20160209_1458'), + ] + + operations = [ + migrations.AlterModelManagers( + name='repair', + managers=[ + ('active', django.db.models.manager.Manager()), + ], + ), + ] diff --git a/servo/migrations/0048_auto_20160225_2328.py b/servo/migrations/0048_auto_20160225_2328.py new file mode 100644 index 0000000..7a5bae5 --- /dev/null +++ b/servo/migrations/0048_auto_20160225_2328.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-25 21:28 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0047_auto_20160225_2326'), + ] + + operations = [ + migrations.AlterModelManagers( + name='repair', + managers=[ + ], + ), + ] diff --git a/servo/models/repair.py b/servo/models/repair.py index 6a9e67a..dad1fe1 100644 --- a/servo/models/repair.py +++ b/servo/models/repair.py @@ -196,6 +196,7 @@ class Repair(models.Model): symptom_code = models.CharField(max_length=7, default='') issue_code = models.CharField(max_length=7, default='') + objects = models.Manager() active = ActiveManager() def is_submitted(self): |