<filename>tests/files/nestedfk/rest.py
from wq.db import rest
from .models import Nestedfk
from .serializers import NestedfkSerializer


rest.router.register_model(
    Nestedfk,
    serializer=NestedfkSerializer,
    fields="__all__",
)

<filename>tests/files/nestedfk/rest.py
from wq.db import rest
from .models import Nestedfk
from .serializers import NestedfkSerializer


rest.router.register_model(
    Nestedfk,
    serializer=NestedfkSerializer,
    fields="__all__",
)
