| Scott Baker | 80d65b1 | 2016-05-26 20:20:47 -0700 | [diff] [blame] | 1 | import os |
| 2 | from django.db import models |
| 3 | from core.models import PlCoreBase |
| 4 | from core.models.plcorebase import StrippedCharField |
| 5 | |
| 6 | # XOS: Serves as the root of the build system |
| 7 | |
| 8 | class XOS(PlCoreBase): |
| 9 | name = StrippedCharField(max_length=200, unique=True, help_text="Name of XOS", default="XOS") |
| 10 | |
| 11 | def __unicode__(self): return u'%s' % (self.name) |
| 12 | |
| 13 | def __init__(self, *args, **kwargs): |
| 14 | super(XOS, self).__init__(*args, **kwargs) |
| 15 | |
| 16 | def save(self, *args, **kwds): |
| 17 | super(XOS, self).save(*args, **kwds) |
| 18 | |
| 19 | # def can_update(self, user): |
| 20 | # return user.can_update_site(self.site, allow=['tech']) |
| 21 | |