Example #1
0
 def get_object(self):
     obj = super(ArticleGenerator, self).get_object()
     obj.title = obj.title[:50]
     obj.annotation = obj.perex
     obj.published = True
     unique_slugify(obj, "slug")
     return obj
Example #2
0
	def get_object(self):
		obj = super(NewsGenerator, self).get_object()
		obj.filtered_short_text = obj.original_short_text
		obj.original_long_text = obj.original_short_text
		obj.filtered_long_text = obj.original_long_text
		obj.approved = True
		unique_slugify(obj, 'slug')
		return obj
Example #3
0
	def get_object(self):
		obj = super(ArticleGenerator, self).get_object()
		obj.title = obj.title[:50]
		obj.filtered_annotation = obj.original_annotation[3:]
		obj.filtered_perex = obj.original_perex[3:]
		obj.filtered_content = obj.original_content[3:]
		obj.published = True
		obj.created = obj.updated
		unique_slugify(obj, 'slug')
		return obj
Example #4
0
 def get_object(self):
     obj = super(ArticleGenerator, self).get_object()
     obj.title = obj.title[:50]
     obj.original_annotation = obj.original_perex
     obj.filtered_annotation = obj.original_annotation
     obj.filtered_perex = obj.original_perex
     obj.filtered_content = obj.original_content
     obj.published = True
     obj.created = obj.updated
     unique_slugify(obj, 'slug')
     return obj
Example #5
0
	def get_object(self):
		obj = super(PostGenerator, self).get_object()
		obj.filtered_perex = obj.original_perex
		obj.filtered_content = obj.original_content
		unique_slugify(obj, 'slug')
		return obj
Example #6
0
	def get_object(self):
		obj = super(BlogGenerator, self).get_object()
		obj.filtered_description = obj.original_description
		obj.filtered_sidebar = obj.original_sidebar
		unique_slugify(obj, 'slug')
		return obj
Example #7
0
 def get_object(self):
     obj = super(CategoryGenerator, self).get_object()
     unique_slugify(obj, "slug")
     return obj
Example #8
0
 def get_object(self):
     obj = super(TweetGenerator, self).get_object()
     obj.filtered_text = obj.original_text
     unique_slugify(obj, 'slug')
     return obj
Example #9
0
 def get_object(self):
     obj = super(PostGenerator, self).get_object()
     obj.filtered_perex = obj.original_perex
     obj.filtered_content = obj.original_content
     unique_slugify(obj, 'slug')
     return obj
Example #10
0
 def get_object(self):
     obj = super(BlogGenerator, self).get_object()
     obj.filtered_description = obj.original_description
     obj.filtered_sidebar = obj.original_sidebar
     unique_slugify(obj, 'slug')
     return obj
Example #11
0
 def get_object(self):
     obj = super(CategoryGenerator, self).get_object()
     unique_slugify(obj, 'slug')
     return obj
Example #12
0
	def get_object(self):
		obj = super(TweetGenerator, self).get_object()
		obj.filtered_text = obj.original_text
		unique_slugify(obj, 'slug')
		return obj