Compare commits

..

No commits in common. "2aef677abde4c614224bc207aee8e44384cca207" and "b0316dc797b27b7327f241d00576d70794938b0c" have entirely different histories.

3 changed files with 2 additions and 8 deletions

View File

@ -1,10 +1,7 @@
from django.contrib import admin
from .models import Frequency, Band, Reference, QSO, User, Contest, ShadowCall, EntryCategory
class UserAdmin(admin.ModelAdmin):
list_display = ('username', 'dncall', 'qrv2m', 'qrv70cm', 'extra2m70cm')
admin.site.register(User, UserAdmin)
admin.site.register(User)
admin.site.register(QSO)
admin.site.register(Band)
admin.site.register(Frequency)

View File

@ -12,10 +12,9 @@ from .validators import CallUsernameValidator, CallLogValidator
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = User
fields = ("username", "email", "dncall", "qrv2m", "qrv70cm", "extra2m70cm")
fields = ("username", "dncall", "qrv2m", "qrv70cm", "extra2m70cm")
username = forms.CharField(max_length=50, validators=[CallUsernameValidator()])
email = forms.EmailField(required=True)
class UpdateRefForm(forms.Form):
existingRef = forms.ModelChoiceField(label="Existing Exchange", queryset=Reference.objects.all(), help_text="If exchange already exists, select it here.", required=False)

View File

@ -1,2 +0,0 @@
Django==1.10
django-crispy-forms