I have two model files, the first is:
-----------------------------------------------------------------------
from proj.base.models import Choice

class User(meta.Model):
    ...
    param = model.ForeignKey(Choice)

-----------------------------------------------------------------------

and the second is :

-----------------------------------------------------------------------
from proj.auth.models import User

class Choice(meta.Model):
    ...

class Discount(meta.model):
    ...
    user = model.ForeignKey(User)
-----------------------------------------------------------------------

How you can see there are imports from each other, and there is the
problem, how I understand the class can't be buld before the imported
class is built.

One of the workaournds is to put all classes in one file, but I don't
want to do that, because auth module is for the user stuff and base
module is for the rest classes.

maybe someone has any ideas. (sorry, for bad english)


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to