db.models.Field.unique_for_month
  • References/Python/Django/API/Models/Model field reference

Field.unique_for_month Like unique_for_date, but requires the field to be unique with respect to the month.

2025-01-10 15:47:30
db.models.DateField.auto_now_add
  • References/Python/Django/API/Models/Model field reference

DateField.auto_now_add Automatically set the field to now when the object is first created. Useful for creation of timestamps

2025-01-10 15:47:30
db.models.fields.files.FieldFile
  • References/Python/Django/API/Models/Model field reference

class FieldFile [source] When you access a FileField on a model, you are given

2025-01-10 15:47:30
db.models.GenericIPAddressField.unpack_ipv4
  • References/Python/Django/API/Models/Model field reference

GenericIPAddressField.unpack_ipv4 Unpacks IPv4 mapped addresses like ::ffff:192.0.2.1. If this option is enabled

2025-01-10 15:47:30
db.models.ForeignKey.limit_choices_to
  • References/Python/Django/API/Models/Model field reference

ForeignKey.limit_choices_to Sets a limit to the available choices for this field when this field is rendered using a ModelForm

2025-01-10 15:47:30
db.models.Field.pre_save()
  • References/Python/Django/API/Models/Model field reference

pre_save(model_instance, add) [source] Method called prior to get_db_prep_save()

2025-01-10 15:47:30
db.models.Field.unique_for_date
  • References/Python/Django/API/Models/Model field reference

Field.unique_for_date Set this to the name of a DateField or DateTimeField to require that this field

2025-01-10 15:47:30
db.models.Field.rel_db_type()
  • References/Python/Django/API/Models/Model field reference

rel_db_type(connection) [source] New in Django

2025-01-10 15:47:30
db.models.GenericIPAddressField.protocol
  • References/Python/Django/API/Models/Model field reference

GenericIPAddressField.protocol Limits valid inputs to the specified protocol. Accepted values are 'both' (default)

2025-01-10 15:47:30
db.models.fields.files.FieldFile.close()
  • References/Python/Django/API/Models/Model field reference

FieldFile.close() [source] Behaves like the standard Python file.close() method

2025-01-10 15:47:30