old_contents: # -*- coding: utf-8 -*-
  from django import VERSION
  from south.db import db
  from south.v2 import SchemaMigration
  
  
  # Support custom user models for Django 1.5+
  if VERSION >= (1, 5):
      from django.contrib.auth import get_user_model
      User = get_user_model()
  else:
      from django.contrib.auth.models import User
  
  
  class Migration(SchemaMigration):
  
      def forwards(self, orm):
          # Adding model 'TrustedClient'
          db.create_table('oauth2_provider_trustedclient', (
              ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
              ('client', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['oauth2.Client'])),
          ))
          db.send_create_signal('oauth2_provider', ['TrustedClient'])
  
  
      def backwards(self, orm):
          # Deleting model 'TrustedClient'
          db.delete_table('oauth2_provider_trustedclient')
  
  
      models = {
          'auth.group': {
              'Meta': {'object_name': 'Group'},
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
              'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
          },
          'auth.permission': {
              'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
              'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
          },
          "%s.%s" % (User._meta.app_label, User._meta.module_name): {
          'Meta': {'object_name': User.__name__},
          },
          'contenttypes.contenttype': {
              'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
              'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
          },
          'oauth2.client': {
              'Meta': {'object_name': 'Client'},
              'client_id': ('django.db.models.fields.CharField', [], {'default': "'599bed4d027ee6e573d6'", 'max_length': '255'}),
              'client_secret': ('django.db.models.fields.CharField', [], {'default': "'92c7e99d5b7bb6b4d7cf20ba26d01fa7ae48eed2'", 'max_length': '255'}),
              'client_type': ('django.db.models.fields.IntegerField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
              'redirect_uri': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
              'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'oauth2_client'", 'null': 'True', 'to': "orm['auth.User']"})
          },
          'oauth2_provider.trustedclient': {
              'Meta': {'object_name': 'TrustedClient'},
              'client': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['oauth2.Client']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
          }
      }
  
      complete_apps = ['oauth2_provider']
new_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.db import models, migrations
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('oauth2', '0003_client'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='TrustedClient',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('client', models.ForeignKey(to='oauth2.Client')),
              ],
          ),
      ]
  
subject: Fix for django 1.8