検索

phrase: max: clip:
target: order:
Results of 171 - 180 of about 195 for Object (0.156 sec.)
モデルからフォームを作成する — Django 4.0.6 ドキュメント 4657
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... hange an existing article. >>> article = Article . objects . get ( pk = 1 ) >>> form = ArticleForm ( instanc ... s . ModelMultipleChoiceField ( queryset = Author . objects . all ()) ModelForm の検証 (バリデーション) ¶ Mod ... ) method. This method creates and saves a database object from the data bound to the form. A subclass of Mod ... rticleForm ( request . POST ) # Save a new Article object from the form's data. >>> new_article = f . save ( ...
https://man.plustar.jp/django/topics/forms/modelforms.html - [similar]
Advanced testing topics — Django 4.0.6 ドキュメント 4657
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... . factory = RequestFactory () self . user = User . objects . create_user ( username = 'jacob' , email = 'jac ... True def test_animal_pk ( self ): lion = Animal . objects . create ( name = "lion" , sound = "roar" ) # lio ... option. logger can be used to pass a Python Logger object . If provided, the logger will be used to log mess ... ges instead of printing to the console. The logger object will respect its logging level rather than the ver ...
https://man.plustar.jp/django/topics/testing/advanced.html - [similar]
django.utils.encoding — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... only is True, don't convert (some) non-string-like objects. """ if isinstance ( s , Promise ): # The input i ... def is_protected_type ( obj ): """Determine if the object instance is of a protected type. Objects of protec ... are resolved to strings, rather than kept as lazy objects. If strings_only is True, don't convert (some) no ... n-string-like objects. """ # Handle the common case first for performan ...
https://man.plustar.jp/django/_modules/django/utils/encoding.html - [similar]
Django 1.0 リリースノート — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... くは Unicode data を参照。 改善された ORM ¶ Django's object-relational mapper -- the component which provides ...
https://man.plustar.jp/django/releases/1.0.html - [similar]
Django 1.11 リリースノート — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ontenttypes command, there's now a list of related objects such as auth.Permission s that will also be delet ... e , and offset parameters when creating GDALRaster objects. Added SpatiaLite support for the IsValid functio ... nction. DjangoJSONEncoder now serializes timedelta objects (used by DurationField ). テンプレート ¶ mark_saf ... nstead of dictionaries so you can unpack the group object directly in a loop, e.g. {% for grouper, list in r ...
https://man.plustar.jp/django/releases/1.11.html - [similar]
条件付きビュー — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... modified time, will be passed the incoming request object and the same parameters, in the same order, as the ... latest_entry ( request , blog_id ): return Entry . objects . filter ( blog = blog_id ) . latest ( "published ...
https://man.plustar.jp/django/topics/conditional-view-processing.html - [similar]
多対多 (many-to-many) 関係 — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... n Article can be published in multiple Publication objects, and a Publication has multiple Article objects: ... tion: >>> a2 . publications . add ( p3 ) Adding an object of the wrong type raises TypeError : >>> a2 . publ ... eate ( title = 'Highlights for Children' ) Article objects have access to their related Publication objects: ... >, <Publication: The Python Journal>]> Publication objects have access to their related Article objects: >>> ...
https://man.plustar.jp/django/topics/db/examples/many_to_many.html - [similar]
モデル — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... h = 100 , primary_key = True ) >>> fruit = Fruit . objects . create ( name = 'Apple' ) >>> fruit . name = 'P ... ear' >>> fruit . save () >>> Fruit . objects . values_list ( 'name' , flat = True ) <QuerySet ... es of the intermediate model: >>> ringo = Person . objects . create ( name = "Ringo Starr" ) >>> paul = Pers ... on . objects . create ( name = "Paul McCartney" ) >>> beatles ...
https://man.plustar.jp/django/topics/db/models.html - [similar]
URL ディスパッチャ — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 空間 polls を持ちます。 Secondly, you can include an object that contains embedded namespace data. If you incl ... or re_path() instances, the URLs contained in that object will be added to the global namespace. However, yo ...
https://man.plustar.jp/django/topics/http/urls.html - [similar]
Signals — Django 4.0.6 ドキュメント 4624
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... MyModel is saved. Different signals use different objects as their senders; you'll need to consult the buil ... er will usually be a string, although any hashable object will suffice. The end result is that your receiver ...
https://man.plustar.jp/django/topics/signals.html - [similar]