Code

Opened 5 years ago

Closed 5 years ago

#10719 closed (duplicate)

zero and PositiveIntegerField/PositiveSmallIntegerField

Reported by: while0pass Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://docs.djangoproject.com/en/dev/ref/models/fields/#positiveintegerfield

It would be good to state explicitly in documentation that PositiveIntegerField and PositiveSmallIntegerField are integers that are more or equal to zero. The confusion is that zero is not a positive integer. So, it would be good to either extend the relevant documentation subsections with a note on zero, or rename the field subclasses. Unfortunately, "NonNegativeIntegerField" looks rather unwieldy.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

#7609 is already open on this.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.