Re: Good IDE setup to use for large Django projects suggestions

2008-06-03 Thread Robvdl
I'v never been happy with full blown IDE's like Eclipse, far too slow for my liking. I use Geany, they call it a 'lightweight' IDE, but don't let that deceive you, Geany actually has a lot of useful features. The Linux version has an integrated terminal (VTE), and together with Geany's project

Re: Sites M2M field in Newforms Admin

2008-06-03 Thread Robvdl
I already figured it out, by following the Django source I came up with something like this to solve the problem: def formfield_for_dbfield(self, db_field, **kwargs): if db_field.name == 'sites': kwargs['initial'] = Site.objects.filter(pk=settings.SITE_ID) return

Sites M2M field in Newforms Admin

2008-05-29 Thread Robvdl
I am in the middle of porting some code to the newforms admin branch. One of the fields in my models was as follows: sites = models.ManyToManyField(Site) ...where 'Site' is django.contrib.sites.models.Site Before switching to the newforms admin branch, if I created a new entry in admin, by