per page, with , order by , clip by
Results of 1 - 1 of about 1 for cards (0.001 sec.)
カスタムのモデルフィールドを作成する 9414
カスタムのモデルフィールドを作成する はじめに モデルリファレンス ドキュメントでは、Djangoの標準フィールドクラスである、 CharField や、 DateField などの使い方を説明しています。多くの場合、これらのクラスがあれば十分です。ただし、Djangoのバージ ... sier to follow, we'll use a consistent example throughout this document: wrapping a Python object representing the deal of cards in a hand of Bridge . Don't worry, you don't have to know how to play Bridge to follow this example. You only 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 someth ... ing like this: class Hand : """A hand of cards (bridge style)""" def __init__ ( self , north , east , south , west ): # Input parameters are lists of cards ('Ah', '9s', ...
https://man.mtool.work/django/6.1/howto/custom-model-fields.html
PREV 1 NEXT