from django.db.models import TextField, ManyToManyField
from yunity.base.base_models import BaseModel, LocationModel
from config import settings


class Group(BaseModel, LocationModel):
    name = TextField()
    description = TextField(null=True)
    members = ManyToManyField(settings.AUTH_USER_MODEL)

from django.db.models import TextField, ManyToManyField
from yunity.base.base_models import BaseModel, LocationModel
from config import settings


class Group(BaseModel, LocationModel):
    name = TextField()
    description = TextField(null=True)
    members = ManyToManyField(settings.AUTH_USER_MODEL, related_name='groups')

Add related name for group member
Add related name for group member
