Results 27 issues of Jerry Wu

I created a small FastAPI application to check this behavior. edgedb schema: ``` module default { type DTime { required property created_on -> datetime { default := datetime_current(); }; }...

Hello, The following code extracted from [FastAPI tutorial](https://www.edgedb.com/docs/guides/tutorials/rest_apis_with_fastapi). ```python ... @router.post("/users", status_code=HTTPStatus.CREATED) async def post_user(user: RequestData) -> ResponseData: try: (created_user,) = await client.query( """ WITH new_user := (INSERT User {name...

`__init__`, `__call__` , `set_parameters` and `show_parameters` methods looks similar in `Strategy ` and `Filter`. My suggestion is using `Inheritance` to refractor the code as following: ```python class BaseDec: delattr_clsname =...

Refactor

## Location within the Book * Chapter or Appendix: 29 * Section: 29.3.5 * Subsection: Example 29.4 ## Description ```python class PintView(TemplateView): def get_context_data(self, *args, **kwargs): context = super().get_context_data(**kwargs) ......

## Location within the Book * Chapter or Appendix: 17 * Section: 17.5.2 * Subsection: Example 17.15 ## Description `apiv1_gone_msg` states "Please switch to `APIv2`"(not `APIv3`). ## Possible Solutions ```python...

Done pending update

## Location within the Book * Chapter or Appendix: 24 * Section: 24.3.7 * Subsection: ref link ## Description First link refers to the Python2 doc. I suggest let's replace...

Done pending update

## Location within the Book * Chapter or Appendix: 10 * Section: 10.5.1 * Subsection: Example 10.9 ## Description `model = Flavor` is defined both in `FlavorCreateView` and `FlavorUpdateView` class....

## Location within the Book * Chapter or Appendix: 13 * Section: 13.2 * Subsection: Example 13.3 ## Description I believe the authors intend to use URL namespace here since...

## Location within the Book * Chapter or Appendix: 11 * Section: 11.1.1 * Subsection: Example 11.2 ## Description It seems that `flavor` used in the `redirect` function in `post`...

## Location within the Book * Chapter or Appendix: 10 * Section: 10.5.2 * Subsection: Example 10.12 ## Description I believe the authors intend to use URL namespace here since...