from __future__ import unicode_literals

from mongoengine import BooleanField, StringField, ListField, ReferenceField, CASCADE, EmbeddedDocument
from flask_mongoengine.wtf import model_form
from flask import url_for
from user import User
from core.database import YetiDocument

class Group(YetiDocument):
    enabled = BooleanField(required=True, default=True)
    groupname = StringField(required=True, unique=True)
    members = ListField(ReferenceField(User, reverse_delete_rule=CASCADE))
    admins = ListField(ReferenceField(User, reverse_delete_rule=CASCADE))

    SEARCH_ALIASES = {}

@@ -115,16 +115,22 @@
 eld,
+ %5C%0A   
  CASCADE
 , Em
@@ -129,119 +129,48 @@
 CADE
-, EmbeddedDocument%0Afrom flask_mongoengine.wtf import model_form%0Afrom flask import url_for%0Afrom user import User
+%0A%0Afrom core.database import YetiDocument
 %0Afro
@@ -176,32 +176,28 @@
 om core.
-databa
+u
 se
+r
  import 
 YetiDocu
@@ -188,28 +188,21 @@
  import 
-YetiDocument
+User%0A
 %0A%0Aclass 

change import