This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'yousuf' | |
from dateutil.rrule import * | |
from dateutil.relativedelta import * | |
import itertools | |
import datetime | |
import random | |
teams = 18 | |
teams = range(1, teams+1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
# Create your models here. | |
class Leagues(models.Model): | |
LeagueName = models.CharField(max_length=200) | |
def __unicode__(self): | |
return self.LeagueName | |
class Team(models.Model): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'yousuf' | |
from League.models import Leagues | |
from League.models import Team | |
from django.contrib import admin | |
class TeamsInLeague(admin.StackedInline): | |
model = Team | |
extra = 1 |
NewerOlder