Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostname unique constraint should be case insensitive #11

Open
kd7lxl opened this issue Sep 3, 2017 · 0 comments
Open

Hostname unique constraint should be case insensitive #11

kd7lxl opened this issue Sep 3, 2017 · 0 comments

Comments

@kd7lxl
Copy link
Member

kd7lxl commented Sep 3, 2017

class Host(models.Model):
"""Tracks any asset on the network."""
objects = DomainSortManager()
name = models.CharField(max_length=242, unique=True,
validators=[domain_validator])

Hostname is constrained unique, but it is case sensitive, allowing duplicates in DNS. Unique constraint should be applied without case sensitivity to avoid later DNS conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant