Hello,
I’m hoping someone here might be able to help me figure out how to fix this
issue I am seeing with IE and an iframe.
I’m using Django 1.4 and there is some data that I store on the session
like such:
request.session[“KEY”] = “VALUE”
And then on a different request, I am able to r
That's awesome, thanks for sharing!
-Jamie
On Tue, Feb 7, 2012 at 7:55 AM, Jonathanz wrote:
> I found it! The correct query shoud be
>
> Book.objects.all().prefetch_related('price_set')
>
>
> On Feb 7, 5:38 pm, Jonathanz wrote:
> > I'm using django1.4 from svn trunk.
> > The models are as foll
“RestaurantHoodMap”, and viola, it works.
Can anyone explain why the string notation won’t work for a model in a
different module?
Thanks!
-Jamie
*From:* James DeMichele [mailto:james.demich...@redfin.com]
*Sent:* Thursday, September 29, 2011 12:34 PM
*To:* django-users@googlegroups.com
jango\db\models\fields\related.py",
line 478, in create_many_related_manager
class ManyRelatedManager(superclass):
File "C:\Python\lib\site-packages\django\db\models\fields\related.py",
line 501, in ManyRelatedManager
if rel.through._meta.auto_created:
AttributeError:
like it fails.
Is this a bug?
Thanks.
-Jamie
-Original Message-----
From: James DeMichele [mailto:james.demich...@redfin.com]
Sent: Thursday, September 29, 2011 11:21 AM
To: django-users@googlegroups.com
Subject: RE: ManyToMany problem
Thanks for the response, that's a completely in
Thanks for the response, that's a completely inaccurate statement.
Here's an example from the Django docs:
https://docs.djangoproject.com/en/1.3/topics/db/models/#intermediary-manyt
omany
The Group object has through="Membership".
Although, one thing I notice is that it looks like in the Django
Hello,
I have created my own ManyToMany table, but am getting an error when I
attempt to get a related item from one of my Models. Any insight would be
greatly appreciated. I am on Django 1.3.1. *models/restuarant_hood_map.py*
class RestaurantHoodMap(models.Model):
restaurant = models.For
uilliers
> wrote:
> > On Aug 1, 7:28 am, James DeMichele wrote:
> >
> > > Hello,
> >
> > > I have a question about tweaking the django.contrib.auth.models.User
> class.
> > > I noticed that Django doesn't allow for overriding of attribute
Hello,
I have a question about tweaking the django.contrib.auth.models.User class.
I noticed that Django doesn't allow for overriding of attributes of "Field"
instances, such as "email" or "first name". Yet, I'd like to my email and
first name fields to be required and I'd also like to have my ema
This sounds more like a Postgresql settings problem than a Django/Python
specific problem.
I'd suggest taking a look at your pg_hba.conf file. It can be finicky, so
you probably want to reference this if you haven't already:
http://www.postgresql.org/docs/8.4/static/auth-pg-hba-conf.html
-Jamie
10 matches
Mail list logo