Skip to content

Instantly share code, notes, and snippets.

View marfire's full-sized avatar

Kevin Christopher Henry marfire

View GitHub Profile
@marfire
marfire / models.py
Created February 17, 2017 00:12
Access the openfootball database from Django
# This file was originally auto-generated by Django's inspectdb command.
# The following changes were made manually:
#
# - Made the ids AutoFields (since they are defined as AUTOINCREMENT)
# - Renamed models to be singular
# - Added verbose_name_plural if necessary
# - Added ForeignKeys
# - Removed _id suffix on field name
# - Added target model
# - Added on_delete argument based on whether or not NULL is allowed