| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Thanks Tim Graham for the initial patch.
|
|
Thanks Anssi Kääriäinen for the initial patch and Anssi, Simon Charette,
and Josh Smeaton for review.
|
|
When a FileField is set to an instance of File that is not also an
instance of FieldFile, pre_save() passes that object as the contents to
Storage.save(). This allows the file to be moved rather than copied
to the upload destination.
|
|
evaluating inner_qs.
|
|
|
|
models.
|
|
The smart_* version should only be used when a lazy string should keep
its lazy status.
|
|
|
|
|
|
|
|
prefetch_related() cache.
|
|
Thanks weidwonder for the report.
|
|
|
|
through model.
|
|
|
|
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.
|
|
|
|
limit_choices_to.
|
|
|
|
|
|
model_instance=None.
|
|
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to
regressions described in refs #26772.
|
|
Previously, empty values were saved as strings.
|
|
|
|
containing underscores.
|
|
|
|
ForeignKey.to_field.
|
|
|
|
|
|
|
|
to_field and primary_key=True.
Thanks Simon Charette for review.
|
|
Thanks marekw2143 for the initial patch and carljm for support.
|
|
model instances.
This behavior was removed in 67d984413c9540074e4fe6aa033081a35cf192bc
but is needed to prevent a crash in formtools.
|
|
models' default and base managers.
This deprecates use_for_related_fields.
Old API:
class CustomManager(models.Model):
use_for_related_fields = True
class Model(models.Model):
custom_manager = CustomManager()
New API:
class Model(models.Model):
custom_manager = CustomManager()
class Meta:
base_manager_name = 'custom_manager'
Refs #20932, #25897.
Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs.
|
|
|
|
Thanks Tim Graham for completing the initial patch.
|
|
|
|
|
|
the Storage.
|
|
deferred instance loading.
|
|
|
|
|
|
|
|
argument.
Unused since its introduction in dc334a2ba8dbf5134d65c97fea2785c3b2294ef5.
|
|
form/model fields.
|
|
The only reason why GenericForeignKey and GenericRelation are stored
separately inside _meta is that they need to be cloned for every model
subclass, but that's not true for any other virtual field. Actually,
it's only true for GenericRelation.
|
|
|
|
|