Skip to content

Clear Django system-check warnings W340 and W342 #5821

Description

@willgearty

Two manage.py/system-check warnings observed during dev-server boot:

  • W340 on program.ClassSubject.allowable_class_size_rangesnull=True has no effect on a ManyToManyField; drop it.
  • W342 on users.UserForwarder.sourceunique=True on a ForeignKey; use OneToOneField instead.

Both appear pre-existing (W340/W342 predate Django 5) and are cosmetic, but easy to retire. The OneToOneField change carries a migration. Worth confirming the current field definitions and that the warnings still fire before fixing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions