# Path: apply/models.py
# class Organization(models.Model):
#     title = models.CharField(max_length=255)
#     website = models.CharField(max_length=255, null=True, blank=True)
#     email = models.EmailField(null=True, blank=True)
#     tag = models.SlugField(max_length=255, null=True, blank=True)
#     phone = models.CharField(max_length=255, null=True, blank=True)
#     users = models.ManyToManyField(User, blank=True)
# 
#     class Meta:
#         verbose_name = _("organization")
#         verbose_name_plural = _("organizations")
#         ordering = ["title"]
# 
#     def __unicode__(self):
#         return self.title


import datetime
from apply.models import Organization
from django.contrib.auth.models import User
from django.contrib.auth.signals import user_logged_in
from django.db import models
from django.db.models.signals import post_save
    from django.utils.timezone import now as datetime_now
# -*- coding: utf-8 -*- vim:fileencoding=utf-8:
# Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#




try:
except ImportError:
    datetime_now = datetime.datetime.now


class UserProfile(models.Model):
    user = models.OneToOneField(User)
    first_login = models.BooleanField(default=True)
    force_logout_date = models.DateTimeField(null=True, blank=True)

# Path: apply/models.py
# class Organization(models.Model):
#     title = models.CharField(max_length=255)
#     website = models.CharField(max_length=255, null=True, blank=True)
#     email = models.EmailField(null=True, blank=True)
#     tag = models.SlugField(max_length=255, null=True, blank=True)
#     phone = models.CharField(max_length=255, null=True, blank=True)
#     users = models.ManyToManyField(User, blank=True)
# 
#     class Meta:
#         verbose_name = _("organization")
#         verbose_name_plural = _("organizations")
#         ordering = ["title"]
# 
#     def __unicode__(self):
#         return self.title


# Path: accounts/models.py
import datetime
from apply.models import Organization
from django.contrib.auth.models import User
from django.contrib.auth.signals import user_logged_in
from django.db import models
from django.db.models.signals import post_save
    from django.utils.timezone import now as datetime_now

# -*- coding: utf-8 -*- vim:fileencoding=utf-8:
# Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#




try:
except ImportError:
    datetime_now = datetime.datetime.now


class UserProfile(models.Model):
    user = models.OneToOneField(User)
    first_login = models.BooleanField(default=True)
    force_logout_date = models.DateTimeField(null=True, blank=True)

    organization = models.ForeignKey(Organization, blank=True, null=True)