Re: 3 models need to access 1 model

2008-09-14 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Thanks Steve. I currently don't have an admin.py file in any of my > apps. Is this as simple as creating the file and moving all > admin.site.register() and admin.ModelAdmin sections into it ? and the > file gets autoloaded ? > Pretty much, yes. regards Steve

Re: 3 models need to access 1 model

2008-09-14 Thread [EMAIL PROTECTED]
Thanks Steve. I currently don't have an admin.py file in any of my apps. Is this as simple as creating the file and moving all admin.site.register() and admin.ModelAdmin sections into it ? and the file gets autoloaded ? --~--~-~--~~~---~--~~ You received this

Re: 3 models need to access 1 model

2008-09-13 Thread Steve Holden
[EMAIL PROTECTED] wrote: > OK, I'm new to Django and this is probably making a silly mistake but, > to me the admin.site.register(Tag) line should appear at the bottom of > the Tags model. If this is done Django will not syncdb or runserver > because it thinks "Tag" has been registered more than

Re: 3 models need to access 1 model

2008-09-13 Thread [EMAIL PROTECTED]
OK, I'm new to Django and this is probably making a silly mistake but, to me the admin.site.register(Tag) line should appear at the bottom of the Tags model. If this is done Django will not syncdb or runserver because it thinks "Tag" has been registered more than once. However, if you put the

Re: 3 models need to access 1 model

2008-09-13 Thread [EMAIL PROTECTED]
Hrm I have this working now, got lucky with a google and found a django bug that had the info I needed to start. So am now using: appt4.models import Tag But am now actually experiencing the bug which is thought to be fixed. I'm using Django 1.0: http://code.djangoproject.com/ticket/6776