Use cases for a OneToMany field

2011-04-27 Thread Charlie DeTar
Django supports many-to-one relationships -- the foreign keys live on the "many", and point to the "one". So, in a simple app where you have Comments that can get Flagged, one Comment can have many Flag's, but each Flag refers to one and only one Comment: class Comment(models.Model): text = m

Re: code style and external library

2009-07-28 Thread Charlie DeTar
Russell Keith-Magee wrote: > On Mon, Jul 27, 2009 at 9:12 AM, Charlie DeTar wrote: >> Hi, >> >> I'm writing a reusable Django app that interfaces with a standalone >> javascript library, which I hope eventually to submit for inclusion in >> Django. I&#

code style and external library

2009-07-26 Thread Charlie DeTar
Hi, I'm writing a reusable Django app that interfaces with a standalone javascript library, which I hope eventually to submit for inclusion in Django. I've run into a conundrum: the javascript library uses mixed case naming (likeThis), where Django recommends using PEP 8 naming (like_this). A d

Re: new Open Layers map widget for use in/out of admin

2009-05-14 Thread Charlie DeTar
ckar...@googlemail.com wrote: > Wow, excellent job! > > I've tested olwidget successful on my OpenWebGIS Project (Visit > http://gka.homelinux.org, Login: demo demo) > > But I have some questions, how can I reach you? Feel free to email me at this address. (cha...@gmail.com). -charlie --~--~

new Open Layers map widget for use in/out of admin

2009-04-18 Thread Charlie DeTar
et". Under the hood, it uses a standalone javascript WKT <-> OL map translator that strips some of the magic of the current contrib.gis.admin implementation, and a django app with some pretty light-weight django classes to integrate with forms an