-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.py
31 lines (24 loc) · 770 Bytes
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from google.appengine.ext.db import djangoforms
import models
class EyepieceForm(djangoforms.ModelForm):
class Meta:
model = models.Eyepiece
exclude = ('owner',)
class LocationForm(djangoforms.ModelForm):
class Meta:
model = models.Location
class ObservationForm(djangoforms.ModelForm):
class Meta:
model = models.Observation
class ObservingSessionForm(djangoforms.ModelForm):
class Meta:
model = models.ObservingSession
exclude = ('owner',)
class TelescopeForm(djangoforms.ModelForm):
class Meta:
model = models.Telescope
exclude = ('owner',)
class UserProfileForm(djangoforms.ModelForm):
class Meta:
model = models.UserProfile
exclude = ('useridentifier',)