#4930: foreign key on database not created with models referencing from other
application
-------------------------------------------+--------------------------------
   Reporter:  James <[EMAIL PROTECTED]>  |                Owner:  adrian        
  
     Status:  reopened                     |            Component:  Database 
wrapper
    Version:  0.96                         |           Resolution:              
    
   Keywords:  foreign key                  |                Stage:  Unreviewed  
    
  Has_patch:  0                            |           Needs_docs:  0           
    
Needs_tests:  0                            |   Needs_better_patch:  0           
    
-------------------------------------------+--------------------------------
Changes (by james <[EMAIL PROTECTED]>):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 here is my model,
 
 from django.db import models
 from django.contrib.auth.models import User
 
 # Create your models here.
 DEPARTMENTS = (
     ('HRD', 'HRD'),
     ('ACT', 'Accounting'),
     ('PUR', 'Purchasing'),
     ('LOG', 'Logistics'),
     ('PRO', 'Production'),
     ('MKG', 'Marketing'),
     ('EXP', 'Export'),
     ('ITD', 'IT'),
 )
 
 LEVELS = (
     ('SM', 'Senior Manager'),
     ('MR', 'Manager'),
     ('SP', 'Supervisor'),
     ('ST', 'Staff'),
 )
 
 class Profile(models.Model):
     """KSK Employee accounts to use this application"""
 
     user = models.ForeignKey(User)
     department = models.CharField(maxlength=3, choices=DEPARTMENTS)
     level = models.CharField(maxlength=3, choices=LEVELS)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4930#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to