Browse Source

Update models to reflect moodle upgrade to 2.8

producao
Marcio Mazza 10 years ago
parent
commit
4674fb0274
  1. 1446
      sigi/apps/mdl/base_models.py
  2. 17
      sigi/apps/mdl/models.py

1446
sigi/apps/mdl/base_models.py

File diff suppressed because it is too large

17
sigi/apps/mdl/models.py

@ -61,6 +61,7 @@ class Cohort(models.Model):
component = models.CharField(max_length=100) component = models.CharField(max_length=100)
timecreated = models.BigIntegerField() timecreated = models.BigIntegerField()
timemodified = models.BigIntegerField() timemodified = models.BigIntegerField()
visible = models.SmallIntegerField()
# Manytomany # Manytomany
members = models.ManyToManyField('User', through='CohortMembers') members = models.ManyToManyField('User', through='CohortMembers')
@ -114,7 +115,6 @@ class Course(models.Model):
summary = models.TextField(blank=True) summary = models.TextField(blank=True)
format = models.CharField(max_length=21) format = models.CharField(max_length=21)
showgrades = models.SmallIntegerField() showgrades = models.SmallIntegerField()
modinfo = models.TextField(blank=True)
newsitems = models.IntegerField() newsitems = models.IntegerField()
startdate = models.BigIntegerField() startdate = models.BigIntegerField()
marker = models.BigIntegerField() marker = models.BigIntegerField()
@ -135,7 +135,8 @@ class Course(models.Model):
summaryformat = models.SmallIntegerField() summaryformat = models.SmallIntegerField()
completionnotify = models.SmallIntegerField() completionnotify = models.SmallIntegerField()
visibleold = models.SmallIntegerField() visibleold = models.SmallIntegerField()
sectioncache = models.TextField(blank=True) calendartype = models.CharField(max_length=30)
cacherev = models.BigIntegerField()
class Meta: class Meta:
managed = False managed = False
@ -291,9 +292,9 @@ class User(models.Model):
msn = models.CharField(max_length=50) msn = models.CharField(max_length=50)
phone1 = models.CharField(max_length=20) phone1 = models.CharField(max_length=20)
phone2 = models.CharField(max_length=20) phone2 = models.CharField(max_length=20)
institution = models.CharField(max_length=40) institution = models.CharField(max_length=255)
department = models.CharField(max_length=30) department = models.CharField(max_length=255)
address = models.CharField(max_length=70) address = models.CharField(max_length=255)
city = models.CharField(max_length=120) city = models.CharField(max_length=120)
country = models.CharField(max_length=2) country = models.CharField(max_length=2)
lang = models.CharField(max_length=30) lang = models.CharField(max_length=30)
@ -311,7 +312,6 @@ class User(models.Model):
mailformat = models.SmallIntegerField() mailformat = models.SmallIntegerField()
maildigest = models.SmallIntegerField() maildigest = models.SmallIntegerField()
maildisplay = models.SmallIntegerField() maildisplay = models.SmallIntegerField()
htmleditor = models.SmallIntegerField()
autosubscribe = models.SmallIntegerField() autosubscribe = models.SmallIntegerField()
trackforums = models.SmallIntegerField() trackforums = models.SmallIntegerField()
timemodified = models.BigIntegerField() timemodified = models.BigIntegerField()
@ -321,6 +321,11 @@ class User(models.Model):
descriptionformat = models.SmallIntegerField() descriptionformat = models.SmallIntegerField()
timecreated = models.BigIntegerField() timecreated = models.BigIntegerField()
suspended = models.SmallIntegerField() suspended = models.SmallIntegerField()
lastnamephonetic = models.CharField(max_length=255, blank=True)
firstnamephonetic = models.CharField(max_length=255, blank=True)
middlename = models.CharField(max_length=255, blank=True)
alternatename = models.CharField(max_length=255, blank=True)
calendartype = models.CharField(max_length=30)
class Meta: class Meta:
managed = False managed = False

Loading…
Cancel
Save