Don't set editable=False, instead, just set the fields class
properties in the Admin inner class and the Meta inner class (on the
ModelForm).
Alexander Chemeris wrote:
> Hi,
>
> Is there any way to exclude field from being generated by
> ModelForm, but still be present on admin interface? If I pa
Try adding the .egg to sys.path explicitly, i.e.
sys.path.insert(0, "/home/redmulec/python/flup-1.0-py2.4.egg")
On Jan 8, 6:51 pm, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Graham Dumpleton wrote:
> > On Jan 8, 2:29 pm, Michael Hipp <[EMAIL PROTECTED]> wrote:
> >> Does any of that offer any clu
Check this out:
http://www.python.org/doc/faq/programming/#what-are-the-best-practices-for-using-import-in-a-module
On Jan 11, 6:54 am, Josh Ourisman <[EMAIL PROTECTED]> wrote:
> I have two models, modelA and modelB. ModelA needs classB1 and classB2
> from modelB, while modelB needs classA1 from
If I remove the circular imports for a
> moment, 'from modelA.models import Class1' works just fine, but if I
> use 'import modelA.models.Class1' I get a 'ImportError: No module
> named Class1'.
>
> I'm clearly missing _something_ here, and the
Just FYI and for anyone else who comes across this thread - I had the
same problem, trying to pass a ForeignKey via HiddenInput in an app
I'm working on. If you need to/want to do it this way, the trick is
that you have to use a ModelChoiceField and not an IntegerField for
Django to be able to do
5 matches
Mail list logo