Commits

Anonymous committed 6091f48

Change Profile to use AutoOneToOneField

Comments (0)

Files changed (1)

gnocchi/forum/models.py

 from django.db import models
 from datetime import datetime
 
+from gnocchi.tools.fields import AutoOneToOneField
 from gnocchi.tools.cache import buffered_property
 
 THREAD_STATE_CHOICES = (
         }
 
 class Profile(models.Model):
-    user = models.ForeignKey('auth.User')
+    user = AutoOneToOneField('auth.User')