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

Display a ListView inside a TabView with Django
Is it possible to get an answer of a method through model filter.values_list?
Filter on through table in Django
How to create a login via django rest framework
Django - Parsing formset data in POST is painfully slow
Exception occurred processing WSGI script :: ImportError: No module named 'subdomains'
Attaching custom queryset to model via django-model-utils
How to handle simple form submission in python django? [closed]
Is it possible to force django_sql_explorer to extend my base.html?
NoReverseMatch - Reverse for 'detail' arguments '()' and keyword arguments '{u'id': ''}' not found
Custom permission is not able to show in permission table
Verbose name for a property described in the model
Python: NoReverseMatch error: Reverse for 'detail' with arguments '(UUID)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['']in django
Remove whitespace from filteting url django tastypie
Django: ModelMultipleChoiceField multi level
Django: way of getting objects?

Categories

HOME
gpu
android-studio-2.2
pyqt
interface
aws-cli
cakephp-3.4
character
pattern-matching
owin
ipmitool
altera
esoteric-languages
google-content-api
jersey-1.0
mapstruct
jmp
nodemcu
pchart
direct3d11
comparator
maze
appirater
apktool
errbot
eviews
xbox
python-2.6
testbed
jmockit
gnat-gps
parse-tree
protein-database
css-position
http-request
tcc
dapper-simplecrud
puredata
textsum
openrasta
sonarlint-eclipse
amq
semantic-logging
appdomain
compiler-design
er-diagram
gpg-signature
vibrate
android-instrumentation
gets
builtins
pacemaker
simevents
pre-build-event
cassia
spreadjs
pushbots
httpruntime.cache
tfs-workitem
typemock
uncompress
wso2greg
skspritenode
pyobjc
mraid
node-serialport
fail2ban
kubuntu
zend-currency
grouping-sets
sonarqube-5.0
metatrader5
rmysql
terminate
vbe
maven-scm
twitter-bootstrap-rails
sphinxql
http-patch
rolify
route-provider
epiceditor
asplinkbutton
idn
qi4j
wiimote
floating-point-exceptions
luabind
strsep
blender-2.49
dsl-tools
google-wave
fail-fast-fail-early
blind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App