-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db_column for EmbeddedModelField #34
Comments
Can you please show your particular query? |
The query has no particularity : sc = Score.objects.get(_id=score_id) |
Right. Could you poste a traceback? It's probably a simple typo somewhere. btw are you using the latest develop branches? |
I've just following these instructions : http://django-mongodb.org/topics/setup.html Environment: Request Method: GET Django Version: 1.3 Traceback:
Exception Type: TypeError at /score/ (...) |
Any solution found yet? Having the same issue! |
I don't have any solution, I decided to switch to MongoEngine : http://mongoengine.org/ |
Hello,
I use a lot "db_column" in my model classes, mainly to shorten field names in mongodb.
But by reinstalling django_nonrel on my environnement, I noticed that the db_column doesn't work anymore for the EmbeddedModelField.
It worked very well before and I think that the last changes on djangotoolbox broke it.
For example, with the following classes:
class MyClass (models.Model):
comments = ListField(EmbeddedModelField('Comment'))
class Comment (models.Model):
text = models.TextField(db_column='t')
date = models.DateTimeField(db_column='d')
Everytime I query MyClass, I get the following error:
'" t' is an invalid keyword argument for this function"
If I remove the db_column in the fields, it works again, but with "text" as the field name ...
Can you make a fix ?
Thanks a lot
The text was updated successfully, but these errors were encountered: