Changes between Version 1 and Version 2 of Ticket #31701


Ignore:
Timestamp:
Jun 12, 2020, 9:41:56 AM (4 years ago)
Author:
Sultan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31701

    • Property Version 3.1master
  • Ticket #31701 – Description

    v1 v2  
    55In addition to the field data, some other model fields (for example, ForeignKey) also use a "client data" of the attribute, the processing of which is performed by a particular descriptor. Such a descriptor is usually assigned to a model using **Field.name**.
    66
    7 This enables us to process and present data in different ways: article.author returns a User object, and article.auther_id returns a User object pk.
     7This enables us to process and present the data in different ways: article.author returns a User object, and article.auther_id returns a User object pk.
    88
    99This feature is not used in model.FileField. Then why use FileField.name instead of FileField.attname for FileDescriptor?
Back to Top