Feature.get_feature_type()
This commit is contained in:
parent
1804ffbad2
commit
9bfa37271c
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ class Feature(models.Model):
|
||||||
def tofilename(self):
|
def tofilename(self):
|
||||||
return 'features/%s/%s.json' % (self.feature_type, self.name)
|
return 'features/%s/%s.json' % (self.feature_type, self.name)
|
||||||
|
|
||||||
|
def get_feature_type(self):
|
||||||
|
return FEATURE_TYPES[self.feature_type]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def fromfile(cls, data, file_path):
|
def fromfile(cls, data, file_path):
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue