author | Madhusudan.C.S <madhusudancs@gmail.com> |
Thu, 15 Jul 2010 00:50:38 +0530 | |
changeset 104 | 1a83a26756c3 |
parent 101 | 61fc4aa7a09a |
child 110 | 627cd08619ee |
permissions | -rw-r--r-- |
101
61fc4aa7a09a
Added base app from which all other apps inherit and made corresponding changes in other apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
from django.db import models |
61fc4aa7a09a
Added base app from which all other apps inherit and made corresponding changes in other apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
|
61fc4aa7a09a
Added base app from which all other apps inherit and made corresponding changes in other apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
|
104
1a83a26756c3
Renamed Base Model with scope and propogated it to other models.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
101
diff
changeset
|
4 |
class ScopedBase(models.Model): |
101
61fc4aa7a09a
Added base app from which all other apps inherit and made corresponding changes in other apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
"""Base model which is in turn inherited by other models. |
61fc4aa7a09a
Added base app from which all other apps inherit and made corresponding changes in other apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
6 |
""" |
104
1a83a26756c3
Renamed Base Model with scope and propogated it to other models.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
101
diff
changeset
|
7 |
|
101
61fc4aa7a09a
Added base app from which all other apps inherit and made corresponding changes in other apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |
scope = models.CharField(max_length=255) |
104
1a83a26756c3
Renamed Base Model with scope and propogated it to other models.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
101
diff
changeset
|
9 |
|
1a83a26756c3
Renamed Base Model with scope and propogated it to other models.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
101
diff
changeset
|
10 |
class Meta: |
1a83a26756c3
Renamed Base Model with scope and propogated it to other models.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
101
diff
changeset
|
11 |
abstract = True |