> I can't repeat this at all. Can you please construct a very small
> example that demonstrates the problem you are seeing so we can test it.

I have Organization model that was placed in "organizations.models"
and table for this model were created with trunk.
Than I move my project to the qs-rf branch.
And I deside to move my Organization model from "organizations.models"
to the "organizations.default_organization" with the same name and put
this into "organizations.models":

from organizations.default_organization import Organization as
DefaultOrganization

class Organization(DefaultOrganization):
    org_field1 = models.IntegerField()
    org_field2 = models.IntegerField()

but create table statement for Organization model have no org_field
fields at all...
% python2.5 manage.py sqlall organizations|grep org_field|wc -l
0


No filed org_field1 or org_field2 from shell to

% python2.5 manage.py shell
>>> from organizations.models import Organization
>>> for f in Organization._meta.fields: f.name
...
'id'
'location'
'name'
'bank'
'account'
'bic'
'code'
'service'

>>> Organization.__module__
'organizations.default_organization'

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
it's strange! it must be organizations.models, because I import
Organization from "organizations.models" _not_ from
"organizations.default_organization" !?


-------------------------------------
MODEL SOURCES
-------------------------------------

% pwd
/home/sector119/devel/eps_src/eps/apps/organizations

% cat default_organization.py
from django.db import models
from django.utils.translation import ugettext_lazy as _

from db import fields
from locations.models import Location

class Organization(models.Model):
    id = models.IntegerField(_('Id'), primary_key=True)
    location = models.ForeignKey(Location,
verbose_name=_('Location:'))
    name = models.CharField(_('Organization'), max_length=50)
    bank = models.CharField(_('Bank'), max_length=50)
    account = fields.PositiveBigIntegerField(_('Account'))
    bic = models.PositiveIntegerField(_('BIC'), help_text=_('Bank
identifier code.'))
    code = models.PositiveIntegerField(_('Code'),
help_text=_('Enterprise code.'))
    service = models.CharField(_('Service'), max_length=50)

% cat models.py
from django.db import models
from django.utils.translation import ugettext_lazy as _

from db import fields
from locations.models import Location

from organizations.organization_models import Organization as
MyOrganization

class Organization(MyOrganization):
    org_field1 = models.IntegerField()
    org_field2 = models.IntegerField()


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to