Skip to content
Snippets Groups Projects
Commit 359e7283 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Save timetable period in DB (issue #16)

parent 73f6af95
No related branches found
No related tags found
No related merge requests found
from django import forms from django import forms
from django.db import models
import dbsettings import dbsettings
from untisconnect.api import get_terms
# Create your models here. from untisconnect.api_helper import get_terms
# class Teacher(models.Model):
# shortcode = models.CharField(max_length=10)
# first_name = models.CharField(max_length=100)
# name = models.CharField(max_length=100)
#
#
# class Room(models.Model):
# shortcode = models.CharField(max_length=10)
# name = models.CharField(max_length=100)
#
#
# class Class(models.Model):
# name = models.CharField(max_length=10)
# text1 = models.CharField(max_length=200)
# text2 = models.CharField(max_length=200)
# room = models.ForeignKey(Room, on_delete=models.CASCADE)
choices = [] choices = []
terms = get_terms() terms = get_terms()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment