per page, with , order by , clip by
Results of 1 - 1 of about 1 for west (0.002 sec.)
カスタムのモデルフィールドを作成する 9414
カスタムのモデルフィールドを作成する はじめに モデルリファレンス ドキュメントでは、Djangoの標準フィールドクラスである、 CharField や、 DateField などの使い方を説明しています。多くの場合、これらのクラスがあれば十分です。ただし、Djangoのバージ ... ly need to know that 52 cards are dealt out equally to four players, who are traditionally called north , east , south and west . Our class looks something like this: class Hand : """A hand of cards (bridge style)""" def __init__ ( self , north , eas ... t , south , west ): # Input parameters are lists of cards ('Ah', '9s', etc.) self . north = north self . east = east self . south = south s ... elf . west = west # ... (other possibly useful methods omitted) ... これはDjangoの仕様を使っていない、普通のPythonクラスです。モデルで ...
https://man.mtool.work/django/6.1/howto/custom-model-fields.html
PREV 1 NEXT