示例#1
0
 def save(self, *args, **kwargs):
     if not self.url:
         self.url = create_url(
             self.title, lambda proposed: PluginDepenency.objects.filter(
                 url=proposed).count() == 0)
     if self.comes_with_studio is not None:
         self.associate_with_studio(self.comes_with_studio)
     self._save(*args, **kwargs)
示例#2
0
 def save(self, *args, **kwargs):
     if not self.url:
         self.url = create_url(self.title, lambda proposed: PluginDepenency.objects.filter(url=proposed).count() == 0)
     if self.comes_with_studio is not None:
         self.associate_with_studio(self.comes_with_studio)
     self._save(*args, **kwargs)
示例#3
0
 def create_url(self):
     self.url = create_url(self.title.lower(), lambda proposed: Band.objects.filter(url=proposed).count() == 0)
示例#4
0
 def create_url(self):
     self.url = create_url(
         self.title.lower(),
         lambda proposed: Band.objects.filter(url=proposed).count() == 0)