Commits

Anonymous committed a564cff

employee table

Comments (0)

Files changed (3)

django_ultrasound/customers/models.py

     color = ColorField()
 
     def __unicode__(self):
-        return self.name
+        return self.name+self.code
 
 class CustomerAddress(models.Model):
     name = models.CharField(_("home Address"), max_length=100)

django_ultrasound/events/models.py

     employee_in_charge = models.ForeignKey(Employee, verbose_name= _("the employee in charge"),related_name="employee2",null=True, blank=True)
     marketing_employee = models.ForeignKey(Employee, verbose_name= _("marketing employee"),related_name="employee3",null=True, blank=True)
     constrain = models.ForeignKey(Constraint,verbose_name= _("the constrain of this event"))
+    
+    def __unicode__(self):
+        return u"%s %s %s" % (self.description, self.event_mounth, self.event_day)
+
+
 
 class Allocation(models.Model):
     allocation_event = models.ForeignKey(Event,verbose_name= _("the event that has allocation "),related_name="employee4",null=True, blank=True)
     employee_get_allocation = models.ForeignKey(Employee,verbose_name= _("the employee in charge"),related_name="employee1")
     allocation_price = models.PositiveIntegerField(_("the price of the product that was alloceted"))
     
+    def __unicode__(self):
+        return u"%s %s %s" % (self.allocation_event.description, self.allocation_event.event_mounth, self.allocation_event.event_day)
+    
     

docs/user to run checkup.txt

 first name : מנהל
 last name	: מועדון
 birthday	: 01/02/1985
-אברהם
-בןיצחק
+king
+red hart
 100001632266992
 
-
+מנהל משאבי אנוש
+user name: UltraSoundManpower@gmail.com
+password :tukyrtxtubs
+first name : jack
+last name	: of diamond
+birthday	: 11/12/1985
+100001761357244
 מנהל אירועים	
 user name: ultraSoundFridayEventManager@gmail.com
 password	: tukyrtxtubs
 first name	:מנהל מסיבות 
 last name	:יום חמישי
 birthday	: 03/04/1987
-נסיכה
-עלה שחור
+prince
+black spaid
 100000806249178
 
 יחצן יום שישי