|
List Info
Thread: OneToOneField
|
|
| OneToOneField |

|
2006-03-19 18:33:26 |
is the bug fixed? I didnt quite understand the previous
topics.
could anyone please tel me what I need to be aware of when
trying to
extend tables and using OneToOneField
many thanks
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-20 12:35:44 |
layik wrote:
> is the bug fixed?
Which one ? and in which version ?
> I didnt quite understand the previous topics.
> could anyone please tel me what I need to be aware of
when trying to
> extend tables and using OneToOneField
>
> many thanks
>
>
>
>
>
--
bruno desthuilliers
développeur
bruno modulix.org
http://www.modulix.com
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-21 00:22:45 |
bruno desthuilliers wrote:
> layik wrote:
> > is the bug fixed?
>
> Which one ? and in which version ?
>
> > I didnt quite understand the previous topics.
> > could anyone please tel me what I need to be aware
of when trying to
> > extend tables and using OneToOneField
> >
> > many thanks
> >
> >
> >
> >
> >
>
>
> --
> bruno desthuilliers
> développeur
> bruno modulix.org
> http://www.modulix.com
sorry, I am using 0.91,
I was reading some posts regardin A bug in it and I was
reading it is
now fixed but I wasnt sure which one either!
my problem with 1to1 is:
Class user:
username (UNIQUE)
Class member:
username = meta.foreignKey (users)
email = charfield
in my_view:
u = user.get_object(pk=1)
m = u.get_member() <<===== error: table user has no
attribute member
m = member.get_object(username__exact=
"me")<<===== error: table user
has no attribute username
does it work for anyone? am I doing the wrong thing? will it
work if I
do it the other way??
thanks
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-21 01:50:01 |
On Tuesday 21 Mar 2006 5:52 am, layik wrote:
> Class member:
> username = meta.foreignKey (users)
> email = charfield
this is not onetoone
--
regards
kg
http://www.li
vejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡà³à²²à²¿à²¨à²•à³à²¸ வாழà¯à®•!
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-21 14:05:50 |
Kenneth Gonsalves wrote:
> On Tuesday 21 Mar 2006 5:52 am, layik wrote:
> > Class member:
> > username = meta.foreignKey (users)
> > email = charfield
>
> this is not onetoone
> --
> regards
> kg
>
> http://www.li
vejournal.com/users/lawgon
> tally ho! http://avsap.org.in
> ಇಂಡà³à²²à²¿à²¨à²•à³à²¸ வாழà¯à®•!
that was 2AM, I did mean meta.OneToOneField(users)
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-21 15:11:17 |
Agreeded, I am trying to use OneToOne in MR branch and get
the same
problems.
I have:
class Employee(models.Model):
user = models.OneToOneField(User,
verbose_name='Employees User ID')
...
And get the following error when trying to view the object
in admin:
Request Method: GET
Request URL: htt
p://127.0.0.1:8000/admin/traininglog/employee/
Exception Type: OperationalError
Exception Value: no such column: auth_user.username
Exception Location:
c:\programming\python24\lib\site-packages\django-0.91-
py2.4.egg\django\db\backends\sqlite3\base.py
in execute, line 62
Any Ideas ?
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-21 15:20:47 |
PS Using ForeignKey works fine. So that my solution for now.
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-21 21:18:19 |
please help!
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| OneToOneField |

|
2006-03-22 16:37:55 |
|
The error "no such column" suggests that your schema is out of whack with your model.
Use the 'python manage.py sqlall [APPLICATIONNAME]' to determine what Django thinks your schema should be, and compare that to what is there.
While doing heavily development, I use a script to rebuild the whole kit, including loading some sample data - it makes it MUCH easier to track down issues when you're tweaking the model quite often.
--~--~---------~--~----~------------~-------~--~----~
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 to django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---
|
| OneToOneField |

|
2006-03-23 14:40:37 |
That is definatly not the problem.
OneToOne just doesnt work with User.
--~--~---------~--~----~------------~-------~--~----~
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 to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|