Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#11224 closed (invalid)

how to make forignkey readonly

Reported by: ankit Owned by: nobody
Component: Core (Management commands) Version: 1.1-beta
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I am having a model which has foriegnkey.I can make fields readonly using readonlyadmin.But if i set foreignkeyfield in readonly it gives error 'Can't adapt'.And if remove forignkey from the readonly list it doesnot gives.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by russellm

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

PLEASE PLEASE PLEASE read the notes on how to contribute to Django.

comment:2 Changed 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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.