Results of 1 - 10 of about 53 for obj (0.004 sec.)
- django.contrib.auth — Django 4.0.6 ドキュメント 12071
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
いる場合、 False を返します。 get_user_permissions ( obj = None ) ¶ Returns a set of permission strings tha ...
t the user has directly. If obj is passed in, only returns the user permissions fo ...
r this specific object. get_group_permissions ( obj = None ) ¶ ユーザが ...
通して持つパーミッションの文字列のセットを返します。 obj が渡されたとき、指定されたオブジェクトに対するグル ...
-
https://man.plustar.jp/django/ref/contrib/auth.html
- [similar]
- Django の admin サイト — Django 4.0.6 ドキュメント 11803
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
empty_value = '???' ) def view_birth_date ( self , obj ): return obj . birth_date Changed in Django 3.2: ...
lay ( description = 'Name' ) def upper_case_name ( obj ): return ( " %s %s " % ( obj . first_name , obj . ...
escription = 'Name' ) def upper_case_name ( self , obj ): return ( " %s %s " % ( obj . first_name , obj . ...
y_value = 'unknown' ) def birth_date_view ( self , obj ): return obj . birth_date Changed in Django 3.2: ...
-
https://man.plustar.jp/django/ref/contrib/admin/index.html
- [similar]
- django.core.checks.messages — Django 4.0.6 ドキュメント 11669
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
def __init__ ( self , level , msg , hint = None , obj = None , id = None ): if not isinstance ( level , ...
= level self . msg = msg self . hint = hint self . obj = obj self . id = id def __eq__ ( self , other ): ...
, attr ) for attr in [ "level" , "msg" , "hint" , "obj" , "id" ] ) def __str__ ( self ): from django.db i ...
mport models if self . obj is None : obj = "?" elif isinstance ( self . obj , ...
-
https://man.plustar.jp/django/_modules/django/core/checks/messages.html
- [similar]
- The syndication feed framework — Django 4.0.6 ドキュメント 11073
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
at central." def items ( self ): return NewsItem . objects . order_by ( '-pub_date' )[: 5 ] def item_titl ...
ct a URL to this feed, put an instance of the Feed object in your URLconf . For example: from django.urls ...
ively. items() is, a method that returns a list of objects that should be included in the feed as <item> ...
elements. Although this example returns NewsItem objects using Django's object-relational mapper , item ...
-
https://man.plustar.jp/django/ref/contrib/syndication.html
- [similar]
- django.utils.decorators — Django 4.0.6 ドキュメント 10210
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ause new # attributes can't be set on bound method objects, only on functions. bound_method = wraps ( met ...
function decorator into a method decorator """ # 'obj' can be a class or a function. If 'obj' is a funct ...
y be a method of the class it is # defined on. If 'obj' is a class, the 'name' is required to be the name ...
# of the method that will be decorated. def _dec ( obj ): if not isinstance ( obj , type ): return _multi ...
-
https://man.plustar.jp/django/_modules/django/utils/decorators.html
- [similar]
- ページネーション — Django 4.0.6 ドキュメント 9897
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
lifting of actually splitting a QuerySet into Page objects. カスタマイズ例 ¶ Give Paginator a list of obj ...
>> from django.core.paginator import Paginator >>> objects = [ 'john' , 'paul' , 'george' , 'ringo' ] >>> ...
p = Paginator ( objects , 2 ) >>> p . count 4 >>> p . num_pages 2 >>> ...
p . page ( 1 ) >>> page1 <Page 1 of 2> >>> page1 . object_list ['john', 'paul'] >>> page2 = p . page ( 2 ...
-
https://man.plustar.jp/django/topics/pagination.html
- [similar]
- Geographic Feeds — Django 4.0.6 ドキュメント 9674
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ction with a single argument def geometry ( self , obj ): ... def item_geometry ( self , item ): ... geom ...
etry ( obj ) ¶ Takes the object returned by get_object() and ...
class ZipcodeFeed ( Feed ): def geometry ( self , obj ): # Can also return: `obj.poly`, and `obj.poly.ce ...
ntroid`. return obj . poly . extent # tuple like: (X0, Y0, X1, Y1). it ...
-
https://man.plustar.jp/django/ref/contrib/gis/feeds.html
- [similar]
- 暗号署名 — Django 4.0.6 ドキュメント 8409
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tuple, or dictionary you can do so using the sign_object() and unsign_object() methods: >>> signed_obj = ...
signer . sign_object ({ 'message' : 'Hello!' }) >>> signed_obj 'eyJt ...
0:Xdc-mOFDjs22KsQAqfVfi8PQSPdo3ckWJxPWwQOFhR4' >>> obj = signer . unsign_object ( signed_obj ) >>> obj {' ...
ults to 'sha256' . Changed in Django 3.2: The sign_object() and unsign_object() methods were added. Using ...
-
https://man.plustar.jp/django/topics/signing.html
- [similar]
- django.core.signing — Django 4.0.6 ドキュメント 8275
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ns for creating and restoring url-safe signed JSON objects. The format used looks like this: >>> signing. ...
component is a URLsafe base64 encoded JSON of the object passed to dumps(). The second component is a ba ...
checks the signature and returns the deserialized object. If the signature fails, a BadSignature excepti ...
ng.dumps and signing.loads. """ def dumps ( self , obj ): return json . dumps ( obj , separators = ( "," ...
-
https://man.plustar.jp/django/_modules/django/core/signing.html
- [similar]
- Django オブジェクトのシリアル化 — Django 4.0.6 ドキュメント 8230
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ta = serializers . serialize ( "xml" , SomeModel . objects . all ()) The arguments to the serialize funct ...
ializer ( format ) ¶ You can also use a serializer object directly: XMLSerializer = serializers . get_ser ...
you want to serialize data directly to a file-like object (which includes an HttpResponse ): with open ( ...
as out : xml_serializer . serialize ( SomeModel . objects . all (), stream = out ) 注釈 Calling get_seri ...
-
https://man.plustar.jp/django/topics/serialization.html
- [similar]