2
1

hi:
i want to add a group support to osqa . but i meet problem , i creat a group.py file in /forum/models dir ,it's content is simple. just below:

from django.db.models import Q
from django.utils.encoding import smart_unicode
import string
from random import Random

from django.utils.translation import ugettext as _
import logging

class Group(BaseModel,DjangoGroup):
    create_date = models.DateTimeField(default=datetime.datetime.now);
    creator = models.ForeignKey(User)
    leader = models.ForeignKey(User)
    about = models.TextField(blank=True)

but , when i drop the origin database , and do python manage.py syncdb again .it have no the forum_group table in the database.

why ?

can anyone tell me ! thanks

if anyone want to join me to develop the group support , i will be welcome!

asked 14 May '11, 11:38

mike's gravatar image

mike
46346
accept rate: 0%

edited 20 May '11, 03:36

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674

Yes, I'd be interested in joining you to develop group support.

(20 May '11, 03:29) Andrew_S ♦

I think your code isn't working because you need a meta class that defines an app_label variable. See my answer to my own question: http://meta.osqa.net/questions/5633/module-db-table-not-created

link

answered 14 May '11, 11:48

rsp's gravatar image

rsp
41661420
accept rate: 66%

thanks , rsp ,i will try it .it's strange!

(14 May '11, 11:57) mike

@mike If this was the solution please accept the answer. Good luck

(14 May '11, 13:10) rsp
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×24
×3

Asked: 14 May '11, 11:38

Seen: 535 times

Last updated: 20 May '11, 03:36

powered by OSQA