Changes between Initial Version and Version 2 of Ticket #7237


Ignore:
Timestamp:
Jun 16, 2008, 11:03:28 AM (17 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7237

    • Property Keywords qsrf-cleanup added
  • Ticket #7237 – Description

    initial v2  
    11I've inherited django.contrib.auth.User model
    2 
     2{{{
    33class MyUser(User):
    44        friends = models.ManyToManyField("self", symmetrical = False,
     
    77        class Admin:
    88                pass
    9 
     9}}}
    1010Other fields were removed for simplicity.
    1111
    1212Now I run shell and:
     13{{{
    1314u1 = MyUser.objects.create_user(username='test1',
    1415email='test1@test.com', password='test')
     
    2627u2.f_set.all()
    2728[<MyUser: test2>]
    28 
     29}}}
    2930So, I guess it's a bug. If you add a u3 and add it to the friends of
    3031u1:
     32{{{
    3133u1.friends.all()
    3234[<MyUser: test1>, <MyUser: test1>]
     35}}}
Back to Top