aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-07-09 22:45:05 -0400
committerMike Crute <mcrute@gmail.com>2010-07-09 22:45:05 -0400
commit95f4d046bcb42bcb34e92293900386b9b29f38ae (patch)
treee47e420c2527f9206a647ceb08cbe0519c0aa12c
parent7cc99d1871f46dae4e6e068278c52e0bf97d928b (diff)
downloadsnakeplan-95f4d046bcb42bcb34e92293900386b9b29f38ae.tar.bz2
snakeplan-95f4d046bcb42bcb34e92293900386b9b29f38ae.tar.xz
snakeplan-95f4d046bcb42bcb34e92293900386b9b29f38ae.zip
Adding user profile
-rw-r--r--snakeplan/accounts/__init__.py0
-rw-r--r--snakeplan/accounts/admin.py24
-rw-r--r--snakeplan/accounts/models.py33
-rw-r--r--snakeplan/accounts/views.py1
4 files changed, 58 insertions, 0 deletions
diff --git a/snakeplan/accounts/__init__.py b/snakeplan/accounts/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/snakeplan/accounts/__init__.py
diff --git a/snakeplan/accounts/admin.py b/snakeplan/accounts/admin.py
new file mode 100644
index 0000000..a7ce6ef
--- /dev/null
+++ b/snakeplan/accounts/admin.py
@@ -0,0 +1,24 @@
1# vim: set filencoding=utf8
2"""
3SnakePlan Admin Setup
4
5@author: Mike Crute (mcrute@gmail.com)
6@date: July 09, 2010
7"""
8
9# Licensed under the Apache License, Version 2.0 (the "License");
10# you may not use this file except in compliance with the License.
11# You may obtain a copy of the License at
12#
13# http://www.apache.org/licenses/LICENSE-2.0
14#
15# Unless required by applicable law or agreed to in writing, software
16# distributed under the License is distributed on an "AS IS" BASIS,
17# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18# See the License for the specific language governing permissions and
19# limitations under the License.
20
21from snakeplan.accounts import models
22from django.contrib import admin
23
24admin.site.register(models.UserProfile)
diff --git a/snakeplan/accounts/models.py b/snakeplan/accounts/models.py
new file mode 100644
index 0000000..6b841aa
--- /dev/null
+++ b/snakeplan/accounts/models.py
@@ -0,0 +1,33 @@
1# vim: set filencoding=utf8
2"""
3SnakePlan Accounts Models
4
5@author: Mike Crute (mcrute@gmail.com)
6@organization: SoftGroup Interactive, Inc.
7@date: July 09, 2010
8"""
9
10# Licensed under the Apache License, Version 2.0 (the "License");
11# you may not use this file except in compliance with the License.
12# You may obtain a copy of the License at
13#
14# http://www.apache.org/licenses/LICENSE-2.0
15#
16# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
21
22
23from django.db import models as m
24from django.db.models import Model
25from django.contrib.auth.models import User
26
27
28class UserProfile(Model):
29
30 user = m.OneToOneField(User)
31
32 initials = m.CharField('initials', max_length=3, blank=True)
33 phone = m.CharField('phone', max_length=30, blank=True)
diff --git a/snakeplan/accounts/views.py b/snakeplan/accounts/views.py
new file mode 100644
index 0000000..60f00ef
--- /dev/null
+++ b/snakeplan/accounts/views.py
@@ -0,0 +1 @@
# Create your views here.