Skip to content

Instantly share code, notes, and snippets.

On vacation

soroush safari coci

On vacation
Block or report user

Report or block coci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
coci /
Created May 22, 2019 — forked from mike360/
Simple follower/following relationship in Django
$ ./ shell
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from followers.models import *
>>> john = User.objects.create_user('john', '', 'password')
>>> paul = User.objects.create_user('paul', '', 'password')
>>> george = User.objects.create_user('george', '', 'password')
>>> ringo = User.objects.create_user('ringo', '', 'password')
You can’t perform that action at this time.