1
- # -*- coding: utf-8 -*-
2
-
3
1
"""OAuth service models."""
4
2
3
+ from allauth .socialaccount .models import SocialAccount
5
4
from django .contrib .auth .models import User
6
5
from django .core .validators import URLValidator
7
6
from django .db import models
8
- from django .db .models import Q
9
7
from django .urls import reverse
10
8
from django .utils .translation import ugettext_lazy as _
11
-
12
- from allauth .socialaccount .models import SocialAccount
13
9
from django_extensions .db .models import TimeStampedModel
14
10
15
11
from readthedocs .projects .constants import REPO_CHOICES
@@ -36,7 +32,12 @@ class RemoteOrganization(TimeStampedModel):
36
32
slug = models .CharField (_ ('Slug' ), max_length = 255 )
37
33
name = models .CharField (_ ('Name' ), max_length = 255 , null = True , blank = True )
38
34
email = models .EmailField (_ ('Email' ), max_length = 255 , null = True , blank = True )
39
- avatar_url = models .URLField (_ ('Avatar image URL' ), null = True , blank = True )
35
+ avatar_url = models .URLField (
36
+ _ ('Avatar image URL' ),
37
+ null = True ,
38
+ blank = True ,
39
+ max_length = 255 ,
40
+ )
40
41
url = models .URLField (
41
42
_ ('URL to organization page' ),
42
43
max_length = 200 ,
@@ -140,6 +141,7 @@ class RemoteRepository(TimeStampedModel):
140
141
_ ('Owner avatar image URL' ),
141
142
null = True ,
142
143
blank = True ,
144
+ max_length = 255 ,
143
145
)
144
146
145
147
ssh_url = models .URLField (
0 commit comments