Ejemplo n.º 1
0
	def save(self, force_insert=False, force_update=False):
		if not self.id:
			self.id = find_random_id(Blip.objects, 10)
			super(Blip, self).save(True)
			self.contributors.add(self.creator)
		else:
			super(Blip, self).save(force_insert, force_update)
Ejemplo n.º 2
0
	def save(self, force_insert=False, force_update=False):
		if not self.id:
			if self.is_root:
				self.id = self.wave.id + ROOT_WAVELET_ID_SUFFIX
			else:
				self.id = find_random_id(Wavelet.objects, 10, prefix=self.wave.id+"!")
			super(Wavelet, self).save(True)
		else:
			super(Wavelet, self).save(force_insert, force_update)
Ejemplo n.º 3
0
	def save(self, force_insert=False, force_update=False):
		if not self.id:
			self.id = find_random_id(Wave.objects, 10)
			super(Wave, self).save(True)
		else:
			super(Wave, self).save(force_insert, force_update)