Last active
July 23, 2017 13:51
-
-
Save nck2/60fd32798c873d19a82da2623ba0fa8b to your computer and use it in GitHub Desktop.
question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# models.py | |
class Profile(models.Model): | |
user = models.OneToOneField(settings.AUTH_USER_MODEL) | |
phone_number = models.CharField(max_length=20, verbose_name="전화번호") | |
address = models.CharField(max_length=30, verbose_name="분반") | |
class_number = models.CharField(max_length=8, verbose_name="학번") | |
# views.py | |
def studentinform(request): | |
User = get_user_model() | |
student_all = User.objects.all() | |
# print('kkk') | |
# student_all_order = student_all.order_by('') | |
return render(request, 'myadmin/studentinform.html',{'student_all':student_all}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment