Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8302985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:25:00+00:00 2026-06-08T17:25:00+00:00

I have a clean function for my form, and in it I have the

  • 0

I have a clean function for my form, and in it I have the below:

tags = cleaned_data.get("tags")
logger.info('got to clean function ' + str(tags))

When I output the tags value, I see: [ '1', '2', '3' ]. In my template, when I want to recreate the html for it, I have a template_tag:

@register.simple_tag
def generate_tags(tags):
    print str(tags)
    # Code to produce the html

and I’m calling it via: {% generate_tags form.tags %}.

However, when I finish the print command in the template function im getting:

<input type="hidden" name="event_tags" value="3" id="id_event_tags_0" />

Why isn’t it giving me the array as I was seeing in the clean function?? Is there a way for me to get the array before the clean function is called?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:25:01+00:00Added an answer on June 8, 2026 at 5:25 pm

    Clearly this is not documented anywhere. For anybody else stuck on the same problem, if you have a form object, you can do:

    form['field_name'].value()
    

    This gives the value before it is cleaned or validated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Django, I have a form class with a clean function. In this clean
I have a Flex client application. I need a clean up function to run
Anyone have any ideas to clean this up? public string FullName { get {
I have the function below which I call very frequently in a loop. I
I have a javascript function to clear my form which includes a gridview, I
I have a function below which is called to reload a recaptcha image. It
I have a function called InputFilter that I use for validating/sanitizing form data and
I have been trying to get the WordPress menu inline and below my side
I have a form and 2 javascript functions below but I am getting 2
I have form below which won't submit to my email. I have pasted my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.