title: unbound method must be called with instance as first argument
body: <p>I'm working with django and i'm getting this error: "unbound method create() must be called with SocialUrl instance as first argument (got nothing instead)". I've read several answers to the same problem here but i'm not sure they are doing the same thing wrong as i am. </p>
  
  <p>Here is the Model containing the method i'm trying to call:</p>
  
  <pre><code>from django.db import models
  
  class SocialUrl(models.Model):
  code = models.CharField(max_length=30)
  
  def create():
      socialUrl = SocialUrl(code = generateCode())
      socialUrl.save()
      return socialUrl
  
  
  def __unicode__(self):
      return self.code
  </code></pre>
  
  <p>and here is the method trying to call SocialUrl.create():</p>
  
  <pre><code>from django.shortcuts import render
  from django.template import RequestContext
  from .general import generateCode
  from .models import SocialUrl
  
  def test(request):
  
  socialUrl = SocialUrl.create()
  #print(SocialUrl.objects.all())
  return render(request, 'test.html', RequestContext(request, {"title": socialUrl.code}))
  </code></pre>
  
  <p>Here is the stacktrace: </p>
  
  <pre><code>Environment:
  
  
  Request Method: GET
  Request URL: http://127.0.0.1:8000/su/asdadsf
  
  Django Version: 1.6.2
  Python Version: 2.7.6
  Installed Applications:
  ('django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'SocialUrl')
  Installed Middleware:
  ('django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware')
  
  
  Traceback:
  File "C:\Users\Sverker\.virtualenvs\coomba\lib\site-    packages\django\core\handlers\base.py" in get_response
  114.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Users\Sverker\Dropbox\Coomba\SbrgCoomba\SocialUrl\views.py" in test
  8.  socialUrl = SocialUrl.create()
  
  Exception Type: TypeError at /su/asdadsf
  Exception Value: unbound method create() must be called with SocialUrl instance as first argument (got nothing instead)
  </code></pre>
  
  <p>Help would be appreciated :) </p>