why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
u'margie.rogin...@gmail.com' I thought this is supposed to be a case sensitive operation - am I missing something here? I'm running with the 1.1 final release. Thanks, Margie Roginski -- You received this message because you are subscribed to the Google Groups "Django

Re: why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
Ah yes - I am using mysql. Thanks for that pointer. Margie On Mar 10, 1:34 pm, Karen Tracey wrote: > Are you using MySQL? See the note about MySQL here: > > http://docs.djangoproject.com/en/dev/ref/models/querysets/#exact > > Karen -- You received this message because you ar

Re: Forms with read only fields

2010-03-21 Thread Margie Roginski
I implement read-only fields by using widgets that render html that does not include any . For example, if I have a field called hobby in a Customer model, in my form I have something like this: self.fields["hobby"] = CharField(widget=DisplayHobbyField(customer), required=False) DisplayHobbyFie

Re: Django Calendar App Just Like Google Calendar

2013-08-10 Thread Margie Roswell
one-js-and-fullcalendar-a-step-by-step-tutorial/ but honestly, I'll do best to start with a working repo (events, calendar, address mapping) (It makes me wonder if anyone has wrapped up a whole bunch of sample django apps, for easy reuse in general.) Margie -- http://FarmBillPrimer.

Re: Django Calendar App Just Like Google Calendar

2013-09-03 Thread Margie Roswell
I'm late back to this thread, but Tito, thank you! I have a "dumb" (or basic) question. Looks like events can be dragged and dropped. Is that true for the end-user as well? -- http://FarmBillPrimer.org http://www.BaltimoreUrbanAg.org (Please send events; This site is hungry.) http://www.ExcellentN

Question about "Django 1.1 Testing and Debugging" Book for Karen

2011-04-28 Thread Margie Roginski
with django 1.2.? Or maybe the changes between 1.1 and 1.2 are just very minor? I see something about "class based test runners" in the doc. I haven't really had a chance to dive in yet, but just thought I'd ask if you have any updates you'd be willing to provide. Thanks,

Re: Question about "Django 1.1 Testing and Debugging" Book for Karen

2011-04-29 Thread Margie Roginski
ork much, so I am looking forward to learning from your book. Thanks! Margie On Apr 29, 4:40 am, Karen Tracey wrote: > On Thu, Apr 28, 2011 at 6:18 PM, Margie Roginski > wrote: > > > > > I have a bit of time on my hands and was going to run through your > > book to

save out a test database?

2011-05-29 Thread Margie Roginski
lient (ie, runserver) - is that possible? Thanks for any pointers, Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email t

Re: save out a test database?

2011-06-01 Thread Margie Roginski
, but what do I call from that point to create the mydata.json file that then gets loaded with the command django-admin.py testserver mydata.json Thanks! Margie On May 29, 7:28 pm, Jason Culverhouse wrote: > On May 29, 2011, at 7:13 PM, Margie Roginski wrote: > > > Anyone kno

Re: save out a test database?

2011-06-02 Thread Margie Roginski
is no more standard way of dumping the database from inside a test so that the state can be replicated for use in a runserver environment. Margie On Jun 1, 2:01 pm, Kirill Spitsin wrote: > On Wed, Jun 01, 2011 at 11:59:28AM -0700, Margie Roginski wrote: > > That's a good pointer, th

Re: save out a test database?

2011-06-04 Thread Margie Roginski
test from the web interface, but in reality, now that I am off and running writing tests, I guess I haven't ended up needing it after all ... In any case, thanks for your response. Margie On Jun 4, 5:47 am, Karen Tracey wrote: > On Thu, Jun 2, 2011 at 10:04 AM, Margie Roginski > wr

Translating tooltip key to tooltip text: use ugettext() and il8n?

2011-06-04 Thread Margie Roginski
so perhaps it is overkill to enable this just for these tooltips. Perhaps I should just be using a custom solution, or perhaps there is something more standard that folks are using? Anyone with some experience in this area that can comment? Much appreciated, Margie -- You received this message b

Utility of select_related when rendering ForeignKeys in a form? [Developer eyes appreciated]

2010-12-13 Thread Margie Roginski
y understanding is correct? Should I simply not be using select_related in this situation? Is it primarily intended for use from views.py, where you have more control over exactly how and when you reference the attributes of a model instance? Or is there some better way I could be making use o

Bug when OR'ing an empty Q() with a non-empty Q()?

2011-01-03 Thread Margie Roginski
name set to foo. Task.objects.filter(Q()) gives me that one object: [] But: Task.objects.filter(Q()|Q(name="bar")) returns [] Is this a bug or am I misunderstanding something? This is on Django 1.2.1 Thanks for any pointers, Margie -- You received this message because you are su

how to get attribute of intermediary model?

2011-02-15 Thread Margie Roginski
person.memberships.filter(group_name="beatles") [0].date_joined Thanks for any pointers, Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Re: how to get attribute of intermediary model?

2011-02-17 Thread Margie Roginski
easy to get all membership info for a given group, but I'm guessing that my original solution is the appropriate solution for getting the join date for just a single person? Margie On Feb 16, 2:05 am, Daniel Roseman wrote: > On Wednesday, February 16, 2011 12:36:49 AM UTC, Margie Roginski wrot

Re: how to get attribute of intermediary model?

2011-02-27 Thread Margie Roginski
Ah yes, that is *much* better. Thank you! Sorry for the delay, forgot to check back on this thread till now. Margie On Feb 17, 2:28 pm, Daniel Roseman wrote: > On Thursday, February 17, 2011 10:06:40 PM UTC, Margie Roginski wrote: > > > Thanks for your reply, Daniel.  I didn'

How to use extra to count based on the value of a field?

2011-03-14 Thread Margie Roginski
resulting queues withthe total number of open tasks (I think). Can anyone give me a hand? Thank you! Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To u

Re: How to use extra to count based on the value of a field?

2011-03-15 Thread Margie Roginski
Ah, right - so obvious! I'm not sure why it didn't occur to me to filter first, then annotate. Thank you! On Mar 15, 2:43 am, Tom Evans wrote: > On Mon, Mar 14, 2011 at 8:57 PM, Margie Roginski > > wrote: > > class Queue(models.Model): > >  # fields here, n

Re: How to use extra to count based on the value of a field?

2011-03-16 Thread Margie Roginski
umber of closed tasks. Perhaps there is some other approach that I am missing ... Margie On Mar 15, 2:43 am, Tom Evans wrote: > On Mon, Mar 14, 2011 at 8:57 PM,MargieRoginski > > wrote: > > class Queue(models.Model): > >  # fields here, not relevant for this d

Re: How to use extra to count based on the value of a field?

2011-03-16 Thread Margie Roginski
aceback (most recent call last) /home/mlevine/django/chipvision74/chip_vision_2/ in () AttributeError: 'Queue' object has no attribute 'num_tasks_closed' Margie On Mar 16, 9:13 am, Tom Evans wrote: > On Wed, Mar 16, 2011 at 3:49 PM, Margie Roginski > > wrote: >

Re: How i can get username into the error mail?

2011-03-16 Thread Margie Roginski
e agree that being able to google and then adapt things is very important. But this is a common need so it seems worthwhile to post it explicitly to help the django community. Margie On Mar 16, 11:49 am, Shawn Milochik wrote: > On Wed, Mar 16, 2011 at 2:47 PM, emonk wrote: > > I'm ti

Intermediary model with many to many from model to itself not fully documented?

2011-04-06 Thread Margie Roginski
Hi developers - your review would be appreciated here! It seems to me, based on my experimentation, that if I have an intermediary model that has a many-to-many relationship from the model to itself, that the order of the two fields that point back to the model is important. For example: class T

<    1   2   3