Копия модели сотрудников, измененые запросы
This commit is contained in:
1 parent
96c7d212af
commit
1de05f5861
4 files changed
+37
-15
No files matched your search
+11
-1
@@ -1,5 +1,5 @@
|
||||
from django.db import models
|
||||
|
||||
from userauth.models import *
|
||||
# Create your models here.
|
||||
|
||||
|
||||
@@ -31,3 +31,13 @@ class BestVote(models.Model):
|
||||
|
||||
def __str__(self):
|
||||
return self.cand_name
|
||||
|
||||
class DictEmplyeeR(models.Model):
|
||||
id = models.IntegerField(primary_key=True)
|
||||
id_dict_employee = models.ForeignKey(DictEmployee, models.DO_NOTHING)
|
||||
id_dict_department = models.ForeignKey(DictDepartment, models.DO_NOTHING)
|
||||
class Meta:
|
||||
verbose_name = "Сотрудники(реальные отделы)"
|
||||
verbose_name_plural = "Сотрудники(реальные отделы)"
|
||||
def __str__(self):
|
||||
return str(self.id_dict_employee)
|
||||
Reference in new issue
Block a user