def create(self, form):
		category = Category(
			category=form.category.data,
			slug=Service.slugify(form.category.data))

		return category.put()
	def get(self, key):
		return Service.get_by_urlsafe_key(key)
	def get_all_categories(**kwargs):
		return Service.get_all(Category.query(), **kwargs)
	def update(self, key, form):
		category = Service.get_by_urlsafe_key(key)
		category.category = form.category.data
		category.slug = Service.slugify(form.category.data)
		return category.put()
    def create(self, form):
        category = Category(category=form.category.data,
                            slug=Service.slugify(form.category.data))

        return category.put()
 def get_all_categories(**kwargs):
     return Service.get_all(Category.query(), **kwargs)
 def get(self, key):
     return Service.get_by_urlsafe_key(key)
 def update(self, key, form):
     category = Service.get_by_urlsafe_key(key)
     category.category = form.category.data
     category.slug = Service.slugify(form.category.data)
     return category.put()