src/hdabo/models.py
changeset 272 1c774f7a0341
parent 271 8f77cf71ab02
parent 266 825ff4d6a8ac
child 275 b2eb3e9e6956
--- a/src/hdabo/models.py	Tue Jun 17 10:25:33 2014 +0200
+++ b/src/hdabo/models.py	Tue Jun 17 10:32:57 2014 +0200
@@ -1,12 +1,17 @@
 # -*- coding: utf-8 -*-
 
 from django.conf import settings
-from django.contrib.auth.models import User
+from django.contrib.auth.models import AbstractUser
 from django.db import models
 from hdabo.utils import Property, normalize
 import datetime
 
 
+# User Class, due to migration to django 1.6.5
+class User(AbstractUser):
+    class Meta:
+        db_table = 'auth_user'
+
 
 class SortedModelManager(models.Manager):
     use_for_related_fields = True
@@ -399,6 +404,3 @@
 class Datasheet_primary_themes(SortedDatasheetLink):
     domain = models.ForeignKey(Domain, db_index=True, null=False, blank=False)
     
-        
-
-    
\ No newline at end of file