Opened 9 years ago

Closed 9 years ago

#5271 closed (fixed) validate no longer accepts application name as an argument

Reported by: Pesh Alto Owned by: adrian
Component: Core (Management commands) Version: master
Severity: Keywords: tutorial validate arguments parameters models
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In the tutorial at
under 'Activating Models', the following example command is given:

python validate polls — Checks for any errors in the construction of your models.

However, this appears to be out of date. When I run the example as:

python validate polls

it says that it was given an extra parameter, and that validate takes no parameters.

If I instead run:

python validate

it appears to work fine. The tutorial should be edited to remove the extra parameter.

Change History (2)

comment:1 Changed 9 years ago by Simon G. <dev@…>

  • Component changed from Documentation to
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from jacob to adrian
  • Patch needs improvement unset
  • Summary changed from tutorial: validate example shows extra parameter to validate no longer accepts application name as an argument
  • Triage Stage changed from Unreviewed to Design decision needed

I think the question is whether we want to allow validate to take an optional application. This must have been removed in the recent rearrangement.

comment:2 Changed 9 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [6040]) Fixed #5271 -- Fixed documentation reference to using the application name as an argument to validate. The recent refactor exposed this error; it was silently ignored previously.

Note: See TracTickets for help on using tickets.
Back to Top