commit | 2721d6ffd59dbfe290e432e601e41f663f991fc8 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@tux.cs.princeton.edu> | Mon Aug 11 11:14:58 2014 -0400 |
committer | Tony Mack <tmack@tux.cs.princeton.edu> | Mon Aug 11 11:14:58 2014 -0400 |
tree | 4a2cbac244edea7a6e587809ca090715ca73e1ed | |
parent | db0a110b779b68f11d311fef5e2f6e359ef328a4 [diff] |
add slicename prop
diff --git a/planetstack/core/models/slice.py b/planetstack/core/models/slice.py index bd41f87..50b10c5 100644 --- a/planetstack/core/models/slice.py +++ b/planetstack/core/models/slice.py
@@ -32,6 +32,10 @@ def __unicode__(self): return u'%s' % (self.name) + @property + def slicename(self): + return "%s_%s" % (self.site.login_base, self.name) + def save(self, *args, **kwds): if self.serviceClass is None: # We allowed None=True for serviceClass because Django evolution