1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 2014 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
# TODO: Module docstring.
"""..."""
from __future__ import (
absolute_import,
print_function,
unicode_literals,
)
str = None
__metaclass__ = type
__all__ = [
# TODO: Your class name here.
'ModelClass',
]
from django.db.models import (
Manager,
Model,
)
# TODO: Import the DefaultMeta from the appropriate app, e.g. metadataserver.
from maasserver import DefaultMeta
class ModelManager(Manager):
"""Manager for model class.
Don't import or instantiate this directly; access as `<Class>.objects` on
the model class it manages.
"""
# TODO: Import your model into, and export it from, models/__init__.py
# TODO: Your class name here.
class ModelClass(Model):
class Meta(DefaultMeta):
"""Needed for South to recognize this model."""
objects = ModelManager()
|