blob: ad021d3e63beb832abbbb9db624b3d171c2465f4 [file] [log] [blame]
Scott Baker80d65b12016-05-26 20:20:47 -07001import os
2from django.db import models
3from core.models import PlCoreBase
4from core.models.plcorebase import StrippedCharField
5
6# XOS: Serves as the root of the build system
7
8class 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