👁️🗨️
    
  
    
      This file contains hidden or 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
    
  
  
    
  | name: CI | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | 
  
    
      This file contains hidden or 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
    
  
  
    
  | timeout: timed out | |
| File "django/core/handlers/exception.py", line 34, in inner | |
| response = get_response(request) | |
| File "django/core/handlers/base.py", line 115, in _get_response | |
| response = self.process_exception_by_middleware(e, request) | |
| File "django/core/handlers/base.py", line 113, in _get_response | |
| response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
| File "contextlib.py", line 52, in inner | |
| return func(*args, **kwds) | |
| File "django/views/generic/base.py", line 71, in view | 
  
    
      This file contains hidden or 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
    
  
  
    
  | from django.contrib import admin | |
| from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin | |
| from django.utils.translation import ugettext_lazy as _ | |
| from .models import User | |
| @admin.register(User) | |
| class UserAdmin(DjangoUserAdmin): | 
  
    
      This file contains hidden or 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
    
  
  
    
  | {% extends "base.html" %} | |
| {% block content %} | |
| <form method="post">{% csrf_token %} | |
| {{ forms.subscription }} | |
| <input type="submit" value="Subscribe"> | |
| </form> | |
| <form method="post">{% csrf_token %} | |
| {{ forms.contact }} | |
| <input type="submit" value="Send"> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class StudentRequiredMixin: | |
| def dispatch(self, request, *args, **kwargs): | |
| response = super().dispatch(request, *args, **kwargs) # noqa | |
| if request.user.status != "étudiant": | |
| messages.info( | |
| request=request, | |
| message="Seuls les étudiants peuvent se pré-inscrire", | |
| ) | |
| return redirect("university:detail", slug=self.kwargs.get("slug")) # noqa | |
| return response | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class Registration(TimeStampedModel): | |
| .... | |
| tutor_m = models.ForeignKey( | |
| "universities.Tutor", | |
| on_delete=models.CASCADE, | |
| ) | |
| .... | 
  
    
      This file contains hidden or 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
    
  
  
    
  | body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def async_mass_mailing(subject, message, from_mail, recipients_list, offset=0, limit=100): | |
| if not recipients_list: | |
| return | |
| for email in recipients_list[offset:offset + limit]: | |
| send_mail(subject, message, from_mail, [email]) | |
| async_task( | |
| async_mass_mailing, | |
| subject=subject, | |
| message=message, | |
| from_mail=from_mail, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | let connected = false; | |
| const usernameInput = document.getElementById('username'); | |
| const button = document.getElementById('join_leave'); | |
| const container = document.getElementById('container'); | |
| const count = document.getElementById('count'); | |
| let room; | |
| function getCookie(name) { | |
| let cookieValue = null; | |
| if (document.cookie && document.cookie !== '') { | 
OlderNewer