mirror of https://github.com/snachodog/mybuddy.git
20 lines
418 B
Python
20 lines
418 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django import forms
|
||
|
from django.contrib.auth.models import User
|
||
|
|
||
|
from .models import Settings
|
||
|
|
||
|
|
||
|
class UserForm(forms.ModelForm):
|
||
|
class Meta:
|
||
|
model = User
|
||
|
fields = ['first_name', 'last_name', 'email']
|
||
|
|
||
|
|
||
|
class UserSettingsForm(forms.ModelForm):
|
||
|
class Meta:
|
||
|
model = Settings
|
||
|
fields = ['dashboard_refresh_rate']
|