django


Django: Formular for OneToOneField children


I have build an incremental user-model in my app, that can be extended by the users as they need.
Idea:
A user is registered with the standard-django User-class.
Then he shall be able to type in his general info like adress, etc. in the Account-class.
Afterwards he shall be able to activate sub-classes (class Sportler, ...) that refer to class Account.
I don't know how to make the formulars.
models.py
from django.db import models
from django.contrib.auth.models import User
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
...
class Sportler(models.Model):
account = models.OneToOneField(Account, on_delete=models.CASCADE)
...

Related Links

How can I pass a variable from one form to the next in Django 1.6
How to use context with class in CreateView in django?
django form use excluded field
Debug transient 404 errors
Login using Tastypie. Curl example
store a list in request.session in one view and retrieve it in another view django
How to test a python eval statement in UWSGI application's ini config?
Allowing views and template content to certain groups
Django Response Delay for every request
way to save multiple instances of different class in django view
Django NoReverseMatch when Debug=False
Django creating objects inheriting from User with existing User
How to add class attribute to ModelForm
Do I need to maintain my Django SECRET_KEY when migrating users between builds?
Why do I get a '403 (Forbidden)' error with Dajaxice?
Humanizing sentance when using pluralize in Django

Categories

HOME
notepad++
google-cloud-platform
linkedin
solaris
socket.io
onclick
python-multithreading
okhttp
dkim
reactive-programming
x-cart
selectize.js
coin3d
symfony-2.8
gmm
sar
simpleitk
kendo-mobile
react-toolbox
parcelable
scriptella
epsilon
jquery-callback
roundup
jboss6.x
ckfinder
outliers
entity-relationship-model
ceylon
carrierwave
corenlp-server
userdefaults
xbox
scatter3d
erb
rselenium
pop3
roblox
xdocreport
apns-php
css-position
kill
android-softkeyboard
knime
pom.xml
nanoc
chai-as-promised
tinymce-3
trojan
page-replacement
custom-font
spring-data-couchbase
java-6
otp
janus
monkey
cubism.js
flex-monkey
latin
xcode-server
lrs
jtwig
gcloud-ruby
lz77
nupic
pushbots
kendo-upload
crouton-os
themoviedb-api
flock
amiga
cwrsync
variadic-templates
boost-program-options
device-tree
human-computer-interface
jqmodal
ray
tinyxml
dct
gnumeric
mutual-authentication
android-framework
fpdi
dsym
ebay-lms
onload-event
nokia-s40
faye
apache-whirr
update-statement
cdonts
appledoc
pos-for-.net
django-piston
data-mapping
wcf-instancing
information-management
netbeans6.1

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App