Hide fields in Django admin
Posted
by jwesonga
on Stack Overflow
See other posts from Stack Overflow
or by jwesonga
Published on 2010-04-21T18:03:00Z
Indexed on
2010/04/21
18:53 UTC
Read the original article
Hit count: 310
I'm tying to hide my slug fields in the admin by setting editable=False but every time I do that I get the following error:
KeyError at /admin/website/program/6/
Key 'slug' not found in Form
Request Method: GET
Request URL: http://localhost:8000/admin/website/program/6/
Exception Type: KeyError
Exception Value:
Key 'slug' not found in Form
Exception Location: c:\Python26\lib\site-packages\django\forms\forms.py in __getitem__, line 105
Python Executable: c:\Python26\python.exe
Python Version: 2.6.4
Any idea why this is happening
© Stack Overflow or respective owner