mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-12 01:30:47 +01:00
* fixed parsing bug * implemented events and publications endpoints split endpoints by entity removed credentials * add pagination (#179) * added pagination * integrated pagination with tortoise * added test for publications * removed converter file * updated dependencies
8 lines
169 B
Python
8 lines
169 B
Python
from tortoise.contrib.pydantic import pydantic_model_creator
|
|
|
|
|
|
class WithPydantic:
|
|
@classmethod
|
|
def to_pydantic(cls):
|
|
return pydantic_model_creator(cls)
|