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)
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)
def create_url(self): self.url = create_url(self.title.lower(), lambda proposed: Band.objects.filter(url=proposed).count() == 0)
def create_url(self): self.url = create_url( self.title.lower(), lambda proposed: Band.objects.filter(url=proposed).count() == 0)