from kool.db.models import Model

class Group(Model):
	"""Groups are used to cluster similar users."""
	
	_groups = {}

	def __init__(self, name):
		super().__init__()
		self._name = name
		self._permissions = []

	@property
	def permissions(self):
		return self._permissions

	@permissions.setter
	def permissions(self, perm):
		if not perm in self._permissions:
			self._permissions.append(perm)


from kool.db.models import Model

class Group(Model):
	"""
	Groups are used to cluster similar users.

	Extends:
		Model
	"""

	def __init__(self, name):
		super().__init__()
		self.name = name
		self.permissions = []

	def add_permissions(self, perm):
		if not perm in self.permissions:
			self.permissions.append(perm)


Remove class groups and property field