Commit 2fbbf5be authored by jblemee's avatar jblemee

refactor: move picture and jabber config

parent 44de9593
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-12-20 09:39
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('picture', models.URLField(blank=True, null=True)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'permissions': (('view_account', 'Read'), ('control_account', 'Control')),
},
),
migrations.CreateModel(
name='ChatConfig',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('jabberID', models.CharField(blank=True, max_length=255, null=True)),
('jabberRoom', models.BooleanField(default=True)),
],
options={
'permissions': (('view_chatroom', 'Read'), ('control_chatroom', 'Control')),
},
),
migrations.CreateModel(
name='ChatProfile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('config', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='djangoldp_account.ChatConfig')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='chatProfile', to=settings.AUTH_USER_MODEL)),
],
options={
'permissions': (('view_chatprofile', 'Read'), ('control_chatprofile', 'Control')),
},
),
]
......@@ -5,7 +5,7 @@ from django.core.urlresolvers import reverse_lazy
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
picture = models.URLField()
picture = models.URLField(blank=True, null=True)
class Meta:
permissions = (
......
......@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(name='djangoldp_account',
version='0.0.2',
version='0.0.4',
description='djangoldp package for account and chat data models',
url='http://git.happy-dev.fr/startinblox/djangoldp_account',
author="Startin'blox",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment