Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not UserProfileOPS.is_instructor(request.user.userprofile) and ACCOMODATION_PREFERENCE_LIMIT:
- prefs = UserAccomodationPref.objects.filter(user=request.user.userprofile)
- if request.site.update_accommodation_end_date < datetime.now().date():
- data['note'] = "Profiliniz kaydedildi ancak konaklama tercihleriniz kaydedilemedi. Konaklama tercih değişikliği süresi geçti."
- log.info("Kullanıcı profilini ve konaklama tercihini güncellenmedi.",extra=request.log_extra)
- return render(request, "userprofile/user_profile.html", data)
- if prefs:
- prefs.delete()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement