Results of 1 - 10 of about 121 for related (0.016 sec.)
- QuerySet API リファレンス — Django 4.0.6 ドキュメント 12974
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
reignKey ( 'self' , on_delete = models . CASCADE , related_name = 'children' , ) date = models . DateField () ...
on with distinct() . If you order by fields from a related model, those fields will be added to the selected ...
are using distinct() be careful about ordering by related models. Similarly, when using distinct() and value ...
注釈 Keep in mind that order_by() uses any default related model ordering that has been defined. You might ha ...
-
https://man.plustar.jp/django/ref/models/querysets.html
- [similar]
- Django 1.8 リリースノート — Django 4.0.6 ドキュメント 11115
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
t of microseconds on other backends. Date and time related arithmetic has also been improved on all backends. ...
ct's change form. Use the new django.contrib.admin.RelatedOnlyFieldListFilter in ModelAdmin.list_filter to li ...
ropdowns now have buttons for changing or deleting related objects using a popup. django.contrib.admindocs ¶ ...
changed in Django 1.2 have been removed. All GDAL-related exceptions are now raised with GDALException . The ...
-
https://man.plustar.jp/django/releases/1.8.html
- [similar]
- Related objects reference — Django 4.0.6 ドキュメント 10161
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ontents | Index | Modules « previous | up | next » Related objects reference ¶ class RelatedManager ¶ A "rela ...
is a manager used in a one-to-many or many-to-many related context. This happens in two cases: The "other sid ...
an use the bulk=False argument to instead have the related manager perform the update by calling e.save() . U ...
Creates a new object, saves it and puts it in the related object set. Returns the newly created object: >>> ...
-
https://man.plustar.jp/django/ref/models/relations.html
- [similar]
- Model Meta options — Django 4.0.6 ドキュメント 9207
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
to use for the model's _default_manager . default_related_name ¶ Options. default_related_name ¶ The name th ...
at will be used by default for the relation from a related object back to this one. The default is <model_nam ...
e>_set . This option also sets related_query_name . As the reverse name for a field shoul ...
f the model, both lowercased. See the paragraph on related names for abstract models . get_latest_by ¶ Option ...
-
https://man.plustar.jp/django/ref/models/options.html
- [similar]
- Django 1.10 リリースノート — Django 4.0.6 ドキュメント 9157
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
y arguments to return all objects in the queryset. related_query_name now supports app label and class interp ...
inherited from abstract base classes. The prefetch_related_objects() function is now a public API. QuerySet.b ...
the datatype used to store DurationField . select_related() prohibits non-relational fields for nested relat ...
ded validation for non-relational fields in select_related() : >>> Book . objects . select_related ( 'title' ...
-
https://man.plustar.jp/django/releases/1.10.html
- [similar]
- contenttypes フレームワーク — Django 4.0.6 ドキュメント 8872
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
be the same type as the primary key fields on the related models, but their primary key values must be coerc ...
obably be using a natural key to uniquely identify related ContentType objects. See natural keys and dumpdata ...
content_object field that returns the object it's related to, and you can also assign to that field or use i ...
ave () >>> t . content_object <User: Guido> If the related object is deleted, the content_type and object_id ...
-
https://man.plustar.jp/django/ref/contrib/contenttypes.html
- [similar]
- モデルフィールドリファレンス — Django 4.0.6 ドキュメント 8698
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
itional arguments: the class to which the model is related and the on_delete option. To create a recursive re ...
ing the ForeignKey. Model.delete() isn't called on related models, but the pre_delete and post_delete signals ...
callable may be invoked several times. ForeignKey. related_name ¶ The name to use for the relation from the r ...
back to this one. It's also the default value for related_query_name (the name to use for the reverse filter ...
-
https://man.plustar.jp/django/ref/models/fields.html
- [similar]
- Model _meta API — Django 4.0.6 ドキュメント 8698
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
he field_name will be (in order of preference) the related_query_name set by the user, the related_name set b ...
ity. This will also include any fields that have a related_name (such as ManyToManyField , or ForeignKey ) th ...
eTimeField: date_joined>, <django.db.models.fields.related.ManyToManyField: groups>, <django.db.models.fields ...
.related.ManyToManyField: user_permissions>) # Also include ...
-
https://man.plustar.jp/django/ref/models/meta.html
- [similar]
- Django 1.7 release notes — Django 4.0.6 ドキュメント 8475
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
command. New Prefetch object for advanced prefetch_related operations. ¶ The new Prefetch object allows custo ...
ike filtering prefetched relations, calling select_related() from a prefetched relation, or prefetching the s ...
tiple times with different querysets. See prefetch_related() for more details. Admin shortcuts support time z ...
backward relation for OneToOneField by setting its related_name to '+' or ending it with '+' . F expressions ...
-
https://man.plustar.jp/django/releases/1.7.html
- [similar]
- モデル — Django 4.0.6 ドキュメント 8426
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
on_delete = models . CASCADE , verbose_name = "the related poll" , ) sites = models . ManyToManyField ( Site ...
e , on_delete = models . CASCADE , verbose_name = "related place" , ) 慣習的に、 verbose_name の最初の文字は大 ...
can query using the attributes of the many-to-many-related model: # Find all the groups with a member whose n ...
el to one from another app. To do this, import the related model at the top of the file where your model is d ...
-
https://man.plustar.jp/django/topics/db/models.html
- [similar]