from account.models import NewFeed
from django.core.exceptions import ObjectDoesNotExist


def newfeed_serialize(user):
    try:
        newfeed = user.newfeed
    except ObjectDoesNotExist:
        newfeed = NewFeed.objects.create(user=user)
    return {'isMinimizedFeed': newfeed.isMinimizedFeed}

f96ecf16e551856c48c698f9ecb7b92cd515cf7d
<mask token>

<mask token>


def newfeed_serialize(user):
    try:
        newfeed = user.newfeed
    except ObjectDoesNotExist:
        newfeed = NewFeed.objects.create(user=user)
    return {'isMinimizedFeed': newfeed.isMinimizedFeed}

from account.models import NewFeed
from django.core.exceptions import ObjectDoesNotExist


def newfeed_serialize(user):
    try:
        newfeed = user.newfeed
    except ObjectDoesNotExist:
        newfeed = NewFeed.objects.create(user=user)
    return {'isMinimizedFeed': newfeed.isMinimizedFeed}
