From 2721d6ffd59dbfe290e432e601e41f663f991fc8 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 11 Aug 2014 11:14:58 -0400 Subject: [PATCH] add slicename prop --- planetstack/core/models/slice.py | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ class Slice(PlCoreBase): 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 -- 2.43.0